summaryrefslogtreecommitdiff
path: root/src/nickserv.c
diff options
context:
space:
mode:
authortrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-01-05 05:24:07 +0000
committertrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-01-05 05:24:07 +0000
commit6f72ea027805f48ebb6470254ef5ccbc67dcd0fc (patch)
tree8168025de4703d8e10d951648f626f2f1f57e61f /src/nickserv.c
parentbb9c7b1c7b9dfafef7637f5dc299a45496d09ac2 (diff)
BUILD : 1.7.6 (521) BUGS : 254, 266 NOTES : Fixed up some alog() messages, and MemoServ INFO showing -1 for no hard limit
git-svn-id: svn://svn.anope.org/anope/trunk@521 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@375 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/nickserv.c')
-rw-r--r--src/nickserv.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/nickserv.c b/src/nickserv.c
index 631003b50..1bd14e947 100644
--- a/src/nickserv.c
+++ b/src/nickserv.c
@@ -3029,10 +3029,13 @@ static int do_set_email(User * u, NickCore * nc, char *param)
return MOD_CONT;
}
- alog("%s: %s!%s@%s (e-mail: %s) changed its e-mail to %s.", s_NickServ,
- u->nick, u->username, common_get_vhost(u),
- (nc->email ? nc->email : "none"), (param ? param : "none"));
-
+ if (u->na && u->na->nc != nc && is_services_admin(u)) {
+ alog("%s: %s!%s@%s used SET EMAIL as Services admin on %s (e-mail: %s)", s_NickServ, u->nick, u->username, common_get_vhost(u), nc->display, (nc->email ? nc->email : "none"));
+ } else {
+ alog("%s: %s!%s@%s (e-mail: %s) changed its e-mail to %s.",
+ s_NickServ, u->nick, u->username, common_get_vhost(u),
+ (nc->email ? nc->email : "none"), (param ? param : "none"));
+ }
if (nc->email)
free(nc->email);