1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd: (C) 2002-2007 InspIRCd Development Team
6 * See: http://www.inspircd.org/wiki/index.php/Credits
8 * This program is free but copyrighted software; see
9 * the file COPYING for details.
11 * ---------------------------------------------------
16 #include "commands/cmd_ison.h"
18 extern "C" command_t* init_command(InspIRCd* Instance)
20 return new cmd_ison(Instance);
25 CmdResult cmd_ison::Handle (const char** parameters, int pcnt, userrec *user)
30 snprintf(retbuf, MAXBUF, "303 %s :", user->nick);
32 for (int i = 0; i < pcnt; i++)
34 u = ServerInstance->FindNick(parameters[i]);
38 strlcat(retbuf, u->nick, MAXBUF);
39 charlcat(retbuf, ' ', MAXBUF);
43 user->WriteServ(retbuf);