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 |
|
|
83 |
|
mod_del_cmd(&whois_msgtab); |
84 |
|
uninstall_hook(whois_cb, va_whois); |
85 |
|
} |
87 |
– |
#endif |
86 |
|
|
87 |
|
/* |
88 |
|
** m_whois |
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 |
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 |
|
/* |
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() |
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 |
|
{ |
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); |