/* Iterate over all channel members, and build up the list. */
- mlen = strlen(me.name) + 10 + strlen(sptr->name);
+ mlen = strlen(cli_name(&me)) + 10 + strlen(cli_name(sptr));
for (member = chptr->members; member; member = member->next_member)
{
strcat(buf, "+");
idx++;
}
- strcat(buf, c2ptr->name);
- idx += strlen(c2ptr->name) + 1;
+ strcat(buf, cli_name(c2ptr));
+ idx += strlen(cli_name(c2ptr)) + 1;
flag = 1;
if (mlen + idx + NICKLEN + 5 > BUFSIZE)
/* space, modifier, nick, \r \n \0 */
struct Channel *ch3ptr;
char buf[BUFSIZE];
- mlen = strlen(me.name) + 10 + strlen(sptr->name);
+ mlen = strlen(cli_name(&me)) + 10 + strlen(cli_name(sptr));
/* List all visible channels/visible members */
idx = 5;
flag = 0;
- for (c2ptr = GlobalClientList; c2ptr; c2ptr = c2ptr->next)
+ for (c2ptr = GlobalClientList; c2ptr; c2ptr = cli_next(c2ptr))
{
int showflag = 0;
if (!IsUser(c2ptr) || (sptr != c2ptr && IsInvisible(c2ptr)))
continue;
- member = c2ptr->user->channel;
+ member = cli_user(c2ptr)->channel;
while (member)
{
if (showflag) /* Have we already shown them? */
continue;
- strcat(buf, c2ptr->name);
+ strcat(buf, cli_name(c2ptr));
strcat(buf, " ");
- idx += strlen(c2ptr->name) + 1;
+ idx += strlen(cli_name(c2ptr)) + 1;
flag = 1;
if (mlen + idx + NICKLEN + 3 > BUFSIZE) /* space, \r\n\0 */
struct Channel *ch3ptr;
char buf[BUFSIZE];
- mlen = strlen(me.name) + 10 + strlen(sptr->name);
+ mlen = strlen(cli_name(&me)) + 10 + strlen(cli_name(sptr));
/* List all visible channels/visible members */
idx = 5;
flag = 0;
- for (c2ptr = GlobalClientList; c2ptr; c2ptr = c2ptr->next)
+ for (c2ptr = GlobalClientList; c2ptr; c2ptr = cli_next(c2ptr))
{
int showflag = 0;
if (!IsUser(c2ptr) || (sptr != c2ptr && IsInvisible(c2ptr)))
continue;
- member = c2ptr->user->channel;
+ member = cli_user(c2ptr)->channel;
while (member)
{
if (showflag) /* Have we already shown them? */
continue;
- strcat(buf, c2ptr->name);
+ strcat(buf, cli_name(c2ptr));
strcat(buf, " ");
- idx += strlen(c2ptr->name) + 1;
+ idx += strlen(cli_name(c2ptr)) + 1;
flag = 1;
if (mlen + idx + NICKLEN + 3 > BUFSIZE) /* space, \r\n\0 */