Remove unnecessary length check
This commit is contained in:
parent
523a87c81d
commit
beeb0c3469
1 changed files with 1 additions and 6 deletions
|
@ -181,12 +181,7 @@ namespace pvpgn
|
|||
std::sprintf(temp, "NICKLEN=%d TOPICLEN=%d CHANNELLEN=%d PREFIX=%s CHANTYPES=" CHANNEL_TYPE " NETWORK=%s IRCD=" PVPGN_SOFTWARE,
|
||||
MAX_CHARNAME_LEN, MAX_TOPIC_LEN, MAX_CHANNELNAME_LEN, CHANNEL_PREFIX, prefs_get_irc_network_name());
|
||||
|
||||
if ((std::strlen(temp)) <= MAX_IRC_MESSAGE_LEN)
|
||||
irc_send(conn, RPL_ISUPPORT, temp);
|
||||
else {
|
||||
std::sprintf(temp, ":Maximum length exceeded");
|
||||
irc_send(conn, RPL_ISUPPORT, temp);
|
||||
}
|
||||
irc_send(conn, RPL_ISUPPORT, temp);
|
||||
|
||||
irc_send_motd(conn);
|
||||
|
||||
|
|
Loading…
Reference in a new issue