X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/d76ed9a966ee3d955c8ef00ecc02e643c2005e2e..0f3e9cfc4b5d0f13085c975e10c0e6c4c8e5fbc3:/src/mod-snoop.c diff --git a/src/mod-snoop.c b/src/mod-snoop.c index 3d463a3..aad6dc2 100644 --- a/src/mod-snoop.c +++ b/src/mod-snoop.c @@ -1,7 +1,7 @@ /* mod-snoop.c - User surveillance module (per pomac's spec) * Copyright 2002-2004 srvx Development Team * - * This file is part of srvx. + * This file is part of x3. * * srvx is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -100,7 +100,7 @@ snoop_new_user(struct userNode *user) { if (!snoop_cfg.enabled) return 0; if (user->uplink->burst && !snoop_cfg.show_bursts) return 0; UPDATE_TIMESTAMP(); - SNOOP("$bNICK$b %s %s@%s [%s] on %s", user->nick, user->ident, user->hostname, inet_ntoa(user->ip), user->uplink->name); + SNOOP("$bNICK$b %s %s@%s (%s) [%s] on %s", user->nick, user->ident, user->hostname, user->handle_info?user->handle_info->handle:"", inet_ntoa(user->ip), user->uplink->name); return 0; } @@ -136,7 +136,7 @@ snoop_conf_read(void) { str = database_get_data(node, "channel", RECDB_QSTRING); if (!str) return; - snoop_cfg.channel = AddChannel(str, now, "+sntim", NULL); + snoop_cfg.channel = AddChannel(str, now, "+sntim", NULL, NULL); if (!snoop_cfg.channel) return; str = database_get_data(node, "show_bursts", RECDB_QSTRING); @@ -189,7 +189,7 @@ snoop_finalize(void) { mod_chanmode_init(&change); change.argc = 1; change.args[0].mode = MODE_CHANOP; - change.args[0].member = AddChannelUser(snoop_cfg.bot, snoop_cfg.channel); + change.args[0].u.member = AddChannelUser(snoop_cfg.bot, snoop_cfg.channel); mod_chanmode_announce(snoop_cfg.bot, snoop_cfg.channel, &change); return 1; }