IRC_xLINE(): output an error message for unexpected "lines"
This fixes: irc-oper.c: In function ‘IRC_xLINE’: irc-oper.c:429: warning: ‘class’ may be used uninitialized in this function irc-oper.c:430: warning: ‘class_c’ may be used uninitialized in this function
This commit is contained in:
parent
65befdafaa
commit
8a8e8a3a23
|
@ -450,6 +450,11 @@ IRC_xLINE(CLIENT *Client, REQUEST *Req)
|
||||||
case 'K':
|
case 'K':
|
||||||
class = CLASS_KLINE; class_c = 'K';
|
class = CLASS_KLINE; class_c = 'K';
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
Log(LOG_CRIT,
|
||||||
|
"IRC_xLINE() called for unknown line: %c!? Ignored.",
|
||||||
|
Req->command[0]);
|
||||||
|
return CONNECTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Req->argc == 1) {
|
if (Req->argc == 1) {
|
||||||
|
|
Loading…
Reference in New Issue