Пример #1
0
static void chat_AutoReply(C_MessageChat &chat)
{
	T_Message msg;
	C_MessageChat req;
	req.set_chatstring("[autoreply] I am but a dumb server");
	req.set_dest(chat.get_src());
	req.set_src(g_regnick);
	msg.data=req.Make();
	msg.message_type=MESSAGE_CHAT;
	if (msg.data) {
		msg.message_length=msg.data->GetLength();
		g_mql->send(&msg);
	};
}
Пример #2
0
static void chat_AutoReply(C_MessageChat &chat)
{
	T_Message msg;
	C_MessageChat req;
	req.set_chatstring("[Auto Reply] This is a WASTE server - http://waste.sf.net");
	req.set_dest(chat.get_src());
	req.set_src(g_regnick);
	msg.data=req.Make();
	msg.message_type=MESSAGE_CHAT;
	if (msg.data) {
		msg.message_length=msg.data->GetLength();
		g_mql->send(&msg);
	};
}