Fix the for loop in cav_away().

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@299 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Tim Cava
2013-07-31 07:15:29 +00:00
parent 4057523aef
commit b0fa3c55e6

View File

@@ -822,9 +822,9 @@ void cav_away(SocketList *Client, char *nick)
NickTab *tmp; NickTab *tmp;
if (get_server_away(from_server) && nick) if (get_server_away(from_server) && nick)
{ {
for (tmp = tabkey_array;tmp; tmp = tmp->next); for (tmp = tabkey_array; tmp; tmp = tmp->next)
{ {
if (!tmp || (tmp->nick && !my_stricmp(tmp->nick, nick))) if (tmp->nick && !my_stricmp(tmp->nick, nick))
return; return;
} }
dcc_printf(Client->is_read, "msg %s AWAY %s\n", nick, get_server_away(from_server)); dcc_printf(Client->is_read, "msg %s AWAY %s\n", nick, get_server_away(from_server));