1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
7 * <brain@chatspike.net>
8 * <Craig@chatspike.net>
10 * Written by Craig Edwards, Craig McLure, and others.
11 * This program is free but copyrighted software; see
12 * the file COPYING for details.
14 * ---------------------------------------------------
19 #include "inspircd_config.h"
21 #include "inspircd_io.h"
31 #include "inspstring.h"
32 #include "helperfuncs.h"
37 void cmd_ison::Handle (char **parameters, int pcnt, userrec *user)
42 snprintf(retbuf, MAXBUF, "303 %s :", user->nick);
44 for (int i = 0; i < pcnt; i++)
46 u = Find(parameters[i]);
50 strlcat(retbuf, u->nick, MAXBUF);
51 charlcat(retbuf, ' ', MAXBUF);
55 WriteServ(user->fd, retbuf);