* +W snomask: Displays if a local user has done a WHOIS request on you.
* derived from spy_whois_notice.c.
*
- * If #define OPERONLY is removed, then any user can use this snomask.
+ * If #define OPERONLY is removed, then any user can use this snomask
+ * (you need to put ~servnotice in oper_only_umodes for this to work).
*
- * $Id: sno_whois.c 3470 2007-05-24 04:01:12Z nenolod $
+ * $Id: sno_whois.c 3498 2007-05-30 10:22:25Z jilles $
*/
#include "stdinc.h"
static void
fini(void)
{
- snomask_modes['W'] = find_snomask_slot();
+ snomask_modes['W'] = 0;
}
-DECLARE_MODULE_AV1(sno_whois, init, fini, NULL, NULL, whois_hfnlist, "$Revision: 3470 $");
+DECLARE_MODULE_AV1(sno_whois, init, fini, NULL, NULL, whois_hfnlist, "$Revision: 3498 $");
void
show_whois(hook_data_client *data)
struct Client *source_p = data->client;
struct Client *target_p = data->target;
- /* source being MyConnect() is implicit here from m_whois.c --fl */
- if(MyClient(target_p) &&
+ if(MyClient(target_p) &&
#ifdef OPERONLY
IsOper(target_p) &&
#endif
":*** Notice -- %s (%s@%s) is doing a whois on you [%s]",
source_p->name,
source_p->username, source_p->host,
- source_p->user->server);
+ source_p->servptr->name);
}
}