diff options
author | Florian Jung <flo@thinkpad.(none)> | 2011-02-27 18:48:35 +0100 |
---|---|---|
committer | Florian Jung <flo@thinkpad.(none)> | 2011-02-27 18:48:35 +0100 |
commit | dacd393fefeabafd1306533dd6c5a56e0ab347cc (patch) | |
tree | dd3d0ed19a9490109a890df2c07634a6b823d1ff /plugins/alt/display2.cpp |
Initial commit
Diffstat (limited to 'plugins/alt/display2.cpp')
-rw-r--r-- | plugins/alt/display2.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/alt/display2.cpp b/plugins/alt/display2.cpp new file mode 100644 index 0000000..257d821 --- /dev/null +++ b/plugins/alt/display2.cpp @@ -0,0 +1,23 @@ +#include <iostream> +#include <string> + +using namespace std; + +#include "../TPluginParentLight.h" +#include "../mytypes.h" +#include "../myfuncs.h" + +extern "C" void init(int* csize, int* conndefault, int* chandefault, int* sessdefault) +{ + *csize=0; *conndefault=PFLAGS_EXEC_ONANYEVENT | PFLAGS_EXEC_ONCREATE; *chandefault=0; *sessdefault=0; +} + +extern "C" void display2 (plugincontext* context, ircmessage msg, TPluginParentLight* parent, int reason) +{ + //if (ucase(msg.command)=="PRIVMSG") + if (reason&PFLAGS_EXEC_ONANYEVENT) + cout << msg.origin << ": " << msg.command << " " << msg.params << ": " << msg.content << endl; + + if (reason&PFLAGS_EXEC_ONCREATE) + cout << endl << "!!!!!!!!!!!!!!connected.!!!!!!!!!!!!!!" << endl << endl; +} |