ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/hash.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/hash.c (file contents):
Revision 3429 by michael, Thu May 1 11:49:45 2014 UTC vs.
Revision 4486 by michael, Sat Aug 16 16:18:04 2014 UTC

# Line 546 | Line 546 | find_or_add_userhost(const char *host)
546  
547    userhost = mp_pool_get(userhost_pool);
548  
549 –  memset(userhost, 0, sizeof(*userhost));
549    strlcpy(userhost->host, host, sizeof(userhost->host));
550    hash_add_userhost(userhost);
551  
# Line 567 | Line 566 | add_user_host(const char *user, const ch
566    dlink_node *ptr;
567    struct UserHost *found_userhost;
568    struct NameHost *nameh;
569 <  int hasident = 1;
569 >  unsigned int hasident = 1;
570  
571    if (*user == '~')
572    {
# Line 598 | Line 597 | add_user_host(const char *user, const ch
597    }
598  
599    nameh = mp_pool_get(namehost_pool);
600 <  memset(nameh, 0, sizeof(*nameh));
600 >
601    strlcpy(nameh->name, user, sizeof(nameh->name));
602  
603    nameh->gcount = 1;
# Line 784 | Line 783 | list_one_channel(struct Client *source_p
783    if (!list_allow_channel(chptr->chname, lt))
784      return;
785  
786 <  if (HasUMode(source_p, UMODE_ADMIN))
788 <  {
789 <    channel_modes(chptr, source_p, modebuf, parabuf);
786 >  channel_modes(chptr, source_p, modebuf, parabuf);
787  
788 <    if (chptr->topic[0])
789 <      snprintf(listbuf, sizeof(listbuf), "[%s] ", modebuf);
790 <    else
791 <      snprintf(listbuf, sizeof(listbuf), "[%s]",  modebuf);
795 <  }
788 >  if (chptr->topic[0])
789 >    snprintf(listbuf, sizeof(listbuf), "[%s] ", modebuf);
790 >  else
791 >    snprintf(listbuf, sizeof(listbuf), "[%s]",  modebuf);
792  
793    sendto_one_numeric(source_p, &me, RPL_LIST, chptr->chname,
794                       dlink_list_length(&chptr->members),

Diff Legend

– Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)