Skip to content

Commit

Permalink
Merge pull request #1 from Pelish/master
Browse files Browse the repository at this point in the history
Fix for a bug in WOL USERIP command
  • Loading branch information
d1zzy committed Dec 29, 2011
2 parents 563bc75 + 2360a7e commit 69976fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pvpgn/src/bnetd/handle_wol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1606,8 +1606,9 @@ static int _handle_userip_command(t_connection * conn, int numparams, char ** pa
if ((numparams>=1)&&(params[0])) {
if((user = connlist_find_connection_by_accountname(params[0]))) {
addr = addr_num_to_ip_str(conn_get_addr(user));
snprintf(temp,sizeof(temp),"%s",addr);
message_send_text(conn,message_wol_userip,conn,temp);
//FIXME: We are not sure of first parameter. It can be also nickname of command sender
snprintf(temp,sizeof(temp),"%s %s", params[0], addr);
message_send_text(conn, message_wol_userip, conn, temp);
}
else {
snprintf(temp,sizeof(temp),"%s :No such nick", params[0]);
Expand Down

0 comments on commit 69976fe

Please sign in to comment.