Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv1599/src
Modified Files:
chanserv.c
Log Message:
squelch signedness comparison warning with old gcc
Index: chanserv.c
===================================================================
RCS file: /cvsroot/srvx/services/src/chanserv.c,v
retrieving revision 1.389
retrieving revision 1.390
diff -C2 -r1.389 -r1.390
*** chanserv.c 26 Oct 2003 19:22:49 -0000 1.389
--- chanserv.c 28 Oct 2003 04:55:30 -0000 1.390
***************
*** 4583,4591 ****
{
char *msg;
- REQUIRE_PARAMS(channel ? 2 : 3);
if (channel) {
msg = unsplit_string(argv + 1, argc - 1, NULL);
send_channel_message(channel, cmd->parent->bot, "%s", msg);
} else if (GetUserH(argv[1])) {
msg = unsplit_string(argv + 2, argc - 2, NULL);
send_target_message(1, argv[1], cmd->parent->bot, "%s", msg);
--- 4583,4592 ----
{
char *msg;
if (channel) {
+ REQUIRE_PARAMS(2);
msg = unsplit_string(argv + 1, argc - 1, NULL);
send_channel_message(channel, cmd->parent->bot, "%s", msg);
} else if (GetUserH(argv[1])) {
+ REQUIRE_PARAMS(3);
msg = unsplit_string(argv + 2, argc - 2, NULL);
send_target_message(1, argv[1], cmd->parent->bot, "%s", msg);
|