summaryrefslogtreecommitdiff
path: root/plugins/alt/display.cpp
blob: 7bdc4773c97c1a17ed82fbf94273a6ebf6531735 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 display (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;
}