08.07.2009, 03:40
pawn Код:
public ircOnUserSay(conn, channel[], user[], message[])
{
if(message[0] != '!')
{
return 1;
}
irccmd(m, 1, conn, channel, user, message);
return 1;
}
irccmd_m(conn, channel[], user[], params[])
{
new msg[128];
if(!strlen(params))
{
ircSay(conn, channel, "Syntax: !m (text)");
}
else
{
format(msg, sizeof(msg), "[IRC] %s: %s", user, params);
SendClientMessageToAll(LightBlue, msg);
ircSay(conn, channel, msg);
return 1;
}
return 1;
}
This compiles fine, but nothing happens when I do !m or !m (text) on my IRC channel. Anybody have any ideas? (Everything else seems to work with the IRC plugin.)