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/test.cpp |
Initial commit
Diffstat (limited to 'plugins/alt/test.cpp')
-rw-r--r-- | plugins/alt/test.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/plugins/alt/test.cpp b/plugins/alt/test.cpp new file mode 100644 index 0000000..de77b64 --- /dev/null +++ b/plugins/alt/test.cpp @@ -0,0 +1,22 @@ +#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_ONEVENT; *sessdefault=0; +} + +extern "C" void test (plugincontext* context, ircmessage msg, TPluginParentLight* parent, int reason) +{ + if (reason&PFLAGS_EXEC_ONEVENT) + if (parent->get_parent()->ismaster(msg.origin)) + parent->say (ucase("hallo meister!")); +} |