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

Comparing ircd-hybrid/trunk/src/s_user.c (file contents):
Revision 2246 by michael, Sun Jun 16 10:48:39 2013 UTC vs.
Revision 2283 by michael, Tue Jun 18 19:13:20 2013 UTC

# Line 1087 | Line 1087 | user_set_hostmask(struct Client *target_
1087      clear_ban_cache_client(target_p);
1088    }
1089  
1090 +  if (!ConfigFileEntry.cycle_on_host_change)
1091 +    return;
1092 +
1093    DLINK_FOREACH(ptr, target_p->channel.head)
1094    {
1095      char modebuf[4], nickbuf[NICKLEN * 3 + 3] = { '\0' };
# Line 1094 | Line 1097 | user_set_hostmask(struct Client *target_
1097      int len = 0;
1098      const struct Membership *ms = ptr->data;
1099  
1100 <    if (has_member_flags(ms, CHFL_CHANOP)) {
1100 >    if (has_member_flags(ms, CHFL_CHANOP))
1101 >    {
1102        *p++ = 'o';
1103        len += snprintf(nickbuf + len, sizeof(nickbuf) - len, len ? " %s" : "%s", target_p->name);
1104      }
1105  
1106 <    if (has_member_flags(ms, CHFL_HALFOP)) {
1106 >    if (has_member_flags(ms, CHFL_HALFOP))
1107 >    {
1108        *p++ = 'h';
1109        len += snprintf(nickbuf + len, sizeof(nickbuf) - len, len ? " %s" : "%s", target_p->name);
1110      }
1111  
1112 <    if (has_member_flags(ms, CHFL_VOICE)) {
1112 >    if (has_member_flags(ms, CHFL_VOICE))
1113 >    {
1114        *p++ = 'v';
1115        len += snprintf(nickbuf + len, sizeof(nickbuf) - len, len ? " %s" : "%s", target_p->name);
1116      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines