diff options
author | Florian Jung <flo@thinkpad.(none)> | 2011-02-28 18:48:58 +0100 |
---|---|---|
committer | Florian Jung <flo@thinkpad.(none)> | 2011-02-28 18:48:58 +0100 |
commit | 74377ece178e661194a40fa79238b3089bb0d0f2 (patch) | |
tree | a1313c5518c5304b90396ef6ed3c04088e8fefe0 /plugins/alt/ircsend.cpp | |
parent | d26ab5f2338aaf07289dd57c7770f85a79cf7b2b (diff) |
Cleaned up unneeded files, some bugfixes
ismaster/isuser now gets called with origin_raw
Diffstat (limited to 'plugins/alt/ircsend.cpp')
-rw-r--r-- | plugins/alt/ircsend.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/plugins/alt/ircsend.cpp b/plugins/alt/ircsend.cpp deleted file mode 100644 index 15a4dfd..0000000 --- a/plugins/alt/ircsend.cpp +++ /dev/null @@ -1,23 +0,0 @@ -#include <iostream> -#include <string> - -using namespace std; - -#include "../TConnectionInterface.h" -#include "../TPluginParentLight.h" -#include "../TUserList.h" -#include "../mytypes.h" -#include "../myfuncs.h" - -extern "C" void init(int* csize, int* conndefault, int* chandefault, int* sessdefault) -{ - *csize=0; *conndefault=0; *chandefault=PFLAGS_EXEC_ONDEMAND; *sessdefault=PFLAGS_EXEC_ONDEMAND; -} - -extern "C" void ircsend (plugincontext* context, ircmessage msg, TPluginParentLight* parent, int reason) -{ - if (reason&PFLAGS_EXEC_ONDEMAND) - if (ucase(msg.command)=="PRIVMSG") - if (parent->get_parent()->ismaster(msg.origin)) - parent->get_parent()->send (msg.content.substr(9)+NEWLINE); -} |