Fix bug in message_telnet_format() when switch statement goes to case message_type_mode and falls into default case

This commit is contained in:
RElesgoe 2016-08-23 20:16:15 -07:00
parent ae481691c7
commit 8bb8607897

View file

@ -679,6 +679,7 @@ namespace pvpgn
std::sprintf(msgtemp, "%s change mode: %s\r\n", tname, text);
conn_unget_chatcharname(me, tname);
}
break;
default:
eventlog(eventlog_level_error, __FUNCTION__, "got bad message type {}", (int)type);
return -1;