small fix
This commit is contained in:
parent
1edd94af86
commit
fe1e3560be
4
sic.c
4
sic.c
@ -121,7 +121,7 @@ parsesrv(char *msg) {
|
|||||||
*p = 0;
|
*p = 0;
|
||||||
if(!strncmp("PONG", cmd, 4))
|
if(!strncmp("PONG", cmd, 4))
|
||||||
return;
|
return;
|
||||||
if(!strncmp("PRIVMSG", cmd, 7)) {
|
if(!strncmp("PRIVMSG", cmd, 7) && txt) {
|
||||||
if(!(p = strchr(cmd, ' ')))
|
if(!(p = strchr(cmd, ' ')))
|
||||||
return;
|
return;
|
||||||
*p = 0;
|
*p = 0;
|
||||||
@ -136,7 +136,7 @@ parsesrv(char *msg) {
|
|||||||
write(srv, bufout, strlen(bufout));
|
write(srv, bufout, strlen(bufout));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
snprintf(bufout, sizeof bufout, "-!- %s", cmd);
|
snprintf(bufout, sizeof bufout, "-!- %s: %s", cmd, txt ? txt : "");
|
||||||
pout(usr, bufout);
|
pout(usr, bufout);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user