using Tcmd successors more carefully
This commit is contained in:
parent
8edb0e23f4
commit
0a903a0c79
@ -1,5 +1,5 @@
|
|||||||
# sic version
|
# sic version
|
||||||
VERSION = 0.7
|
VERSION = 0.8
|
||||||
|
|
||||||
# Customize below to fit your system
|
# Customize below to fit your system
|
||||||
|
|
||||||
|
5
sic.c
5
sic.c
@ -194,8 +194,9 @@ parsesrv(char *msg) {
|
|||||||
}
|
}
|
||||||
else if(!strncmp("MODE", argv[Tcmd], 5))
|
else if(!strncmp("MODE", argv[Tcmd], 5))
|
||||||
snprintf(bufout, sizeof bufout, "-!- %s changed mode/%s -> %s %s",
|
snprintf(bufout, sizeof bufout, "-!- %s changed mode/%s -> %s %s",
|
||||||
argv[Tnick], argv[Tcmd + 1],
|
argv[Tnick], argv[Tcmd + 1] ? argv[Tcmd + 1] : "",
|
||||||
argv[Tcmd + 2], argv[Tcmd + 3]);
|
argv[Tcmd + 2] ? argv[Tcmd + 2] : "",
|
||||||
|
argv[Tcmd + 3] ? argv[Tcmd + 3] : "");
|
||||||
else if(!strncmp("QUIT", argv[Tcmd], 5))
|
else if(!strncmp("QUIT", argv[Tcmd], 5))
|
||||||
snprintf(bufout, sizeof bufout, "-!- %s(%s) has quit \"%s\"",
|
snprintf(bufout, sizeof bufout, "-!- %s(%s) has quit \"%s\"",
|
||||||
argv[Tnick], argv[Tuser],
|
argv[Tnick], argv[Tuser],
|
||||||
|
Loading…
Reference in New Issue
Block a user