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

Comparing ircd-hybrid-7.3/modules/m_whois.c (file contents):
Revision 1114 by michael, Mon Dec 20 20:33:05 2010 UTC vs.
Revision 1121 by michael, Sun Jan 9 11:03:03 2011 UTC

# Line 56 | Line 56 | struct Message whois_msgtab = {
56    { m_unregistered, m_whois, mo_whois, m_ignore, mo_whois, m_ignore }
57   };
58  
59 #ifndef STATIC_MODULES
59   const char *_version = "$Revision$";
60   static struct Callback *whois_cb;
61  
# Line 84 | Line 83 | _moddeinit(void)
83    mod_del_cmd(&whois_msgtab);
84    uninstall_hook(whois_cb, va_whois);
85   }
87 #endif
86  
87   /*
88   ** m_whois
# Line 113 | Line 111 | m_whois(struct Client *client_p, struct
111                   me.name, source_p->name);
112        return;
113      }
114 <    else
115 <      last_used = CurrentTime;
114 >
115 >    last_used = CurrentTime;
116  
117      /* if we have serverhide enabled, they can either ask the clients
118       * server, or our server.. I dont see why they would need to ask
# Line 130 | Line 128 | m_whois(struct Client *client_p, struct
128      parv[1] = parv[2];
129    }
130  
133 #ifdef STATIC_MODULES
134  do_whois(source_p, parc, parv);
135 #else
131    execute_callback(whois_cb, source_p, parc, parv);
137 #endif
132   }
133  
134   /*
# Line 162 | Line 156 | mo_whois(struct Client *client_p, struct
156      parv[1] = parv[2];
157    }
158  
165 #ifdef STATIC_MODULES
166  do_whois(source_p, parc, parv);
167 #else
159    execute_callback(whois_cb, source_p, parc, parv);
169 #endif
160   }
161  
162   /* do_whois()
# Line 294 | Line 284 | global_whois(struct Client *source_p, co
284   static int
285   single_whois(struct Client *source_p, struct Client *target_p)
286   {
287 <  dlink_node *ptr;
298 <  struct Channel *chptr;
287 >  dlink_node *ptr = NULL;
288  
289    if (!IsInvisible(target_p) || target_p == source_p)
290    {
# Line 307 | Line 296 | single_whois(struct Client *source_p, st
296    /* target_p is +i. Check if it is on any common channels with source_p */
297    DLINK_FOREACH(ptr, target_p->channel.head)
298    {
299 <    chptr = ((struct Membership *) ptr->data)->chptr;
299 >    struct Channel *chptr = ((struct Membership *) ptr->data)->chptr;
300 >
301      if (IsMember(source_p, chptr))
302      {
303        whois_person(source_p, target_p);

Diff Legend

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