* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd: (C) 2002-2008 InspIRCd Development Team
+ * InspIRCd: (C) 2002-2009 InspIRCd Development Team
* See: http://www.inspircd.org/wiki/index.php/Credits
*
* This program is free but copyrighted software; see
CmdResult Handle (const std::vector<std::string> ¶meters, User *user)
{
std::string retbuf = std::string("340 ") + user->nick + " :";
+ int nicks = 0;
for (int i = 0; i < (int)parameters.size(); i++)
{
User *u = ServerInstance->FindNick(parameters[i]);
if ((u) && (u->registered == REG_ALL))
{
- retbuf = retbuf + u->nick + (IS_OPER(u) ? "*" : "") + "=+" + u->ident + "@" + u->GetIPString() + " ";
+ retbuf = retbuf + u->nick + (IS_OPER(u) ? "*" : "") + "=";
+ if (IS_AWAY(u))
+ retbuf += "-";
+ else
+ retbuf += "+";
+ retbuf += u->ident + "@" + u->GetIPString() + " ";
+ nicks++;
}
}
- user->WriteServ(retbuf);
+ if (nicks != 0)
+ user->WriteServ(retbuf);
/* Dont send to the network */
return CMD_LOCALONLY;