Commit bb1e039f authored by William Lallemand's avatar William Lallemand Committed by Romain Bignon

fix ISON (closes #851)

the ISON command wasn't working with several nicks
Signed-off-by: Romain Bignon's avatarRomain Bignon <romain@symlink.me>
parent 5d2ee430
......@@ -441,15 +441,17 @@ void IRC::m_list(Message message)
}
}
/** ISON :[nick list] */
/** ISON [nick list] */
void IRC::m_ison(Message message)
{
string buf = message.getArg(0);
string nick;
string list;
while((nick = stringtok(buf, " ")).empty() == false)
Nick* n;
for (size_t i = 0; i < message.countArgs(); i++)
{
Nick* n;
nick = message.getArg(i);
if((n = getNick(nick)) && n->isOnline())
{
if(!list.empty())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment