IRC help
#1

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;
}
Hello, I have a problem with ircOnUserSay, and was wondering if anyone here had a solution.
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.)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)