make WOL2 clients recieve proper namreply
This commit is contained in:
parent
da377c384e
commit
6a2cda1362
3 changed files with 2 additions and 7 deletions
pvpgn/src/bnetd
|
@ -794,7 +794,6 @@ static int _handle_join_command(t_connection * conn, int numparams, char ** para
|
|||
else
|
||||
irc_send(conn,RPL_NOTOPIC,":No topic is set");
|
||||
|
||||
irc_send_rpl_namreply(conn,channel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -853,12 +853,6 @@ static int _handle_join_command(t_connection * conn, int numparams, char ** para
|
|||
channel_set_userflags(conn);
|
||||
wolname=irc_convert_channel(channel);
|
||||
|
||||
irc_send_rpl_namreply(conn,channel);
|
||||
|
||||
if ((std::strlen(wolname)+1+std::strlen(":End of NAMES list")+1)<MAX_IRC_MESSAGE_LEN) {
|
||||
snprintf(temp, sizeof(temp), "%s :End of NAMES list",wolname);
|
||||
irc_send(conn,RPL_ENDOFNAMES,temp);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (e)
|
||||
|
|
|
@ -893,6 +893,8 @@ int irc_send_rpl_namreply_internal(t_connection * c, t_channel const * channel){
|
|||
return -1;
|
||||
}
|
||||
|
||||
eventlog(eventlog_level_debug,__FUNCTION__,"got called");
|
||||
|
||||
std::memset(temp,0,sizeof(temp));
|
||||
ircname = irc_convert_channel(channel);
|
||||
if (!ircname) {
|
||||
|
|
Loading…
Add table
Reference in a new issue