Remove unnecessary length check

This commit is contained in:
RElesgoe 2018-07-15 02:39:39 -07:00
parent 523a87c81d
commit beeb0c3469

View file

@ -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);