[srvx-commits] CVS: services/src chanserv.c,1.330,1.331
Brought to you by:
entrope
|
From: Entrope <en...@us...> - 2003-01-10 03:45:35
|
Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv26748/src
Modified Files:
chanserv.c
Log Message:
put spaces in the !names output (as intended)
Index: chanserv.c
===================================================================
RCS file: /cvsroot/srvx/services/src/chanserv.c,v
retrieving revision 1.330
retrieving revision 1.331
diff -C2 -r1.330 -r1.331
*** chanserv.c 8 Jan 2003 23:48:59 -0000 1.330
--- chanserv.c 10 Jan 2003 03:45:32 -0000 1.331
***************
*** 309,313 ****
/* Names information */
! #define CSMSG_CHANNEL_NAMES "Users in $b%s$b: %s"
#define CSMSG_END_NAMES "End of names in $b%s$b"
--- 309,313 ----
/* Names information */
! #define CSMSG_CHANNEL_NAMES "Users in $b%s$b:%s"
#define CSMSG_END_NAMES "End of names in $b%s$b"
***************
*** 4469,4477 ****
targData = GetTrueChannelAccess(channel->channel_info, targ->handle_info);
if (!targData) continue;
! if (pos + strlen(targ->nick) + strlen(targ->handle_info->handle) + 5 > sizeof(buf)) {
buf[pos] = 0;
send_message(user, cmd->parent->bot, CSMSG_CHANNEL_NAMES, channel->name, buf);
pos = 0;
}
if (IsUserSuspended(targData)) buf[pos++] = 's';
buf[pos++] = accessChars[targData->access];
--- 4469,4478 ----
targData = GetTrueChannelAccess(channel->channel_info, targ->handle_info);
if (!targData) continue;
! if (pos + strlen(targ->nick) + strlen(targ->handle_info->handle) + 6 > sizeof(buf)) {
buf[pos] = 0;
send_message(user, cmd->parent->bot, CSMSG_CHANNEL_NAMES, channel->name, buf);
pos = 0;
}
+ buf[pos++] = ' ';
if (IsUserSuspended(targData)) buf[pos++] = 's';
buf[pos++] = accessChars[targData->access];
|