summaryrefslogtreecommitdiff
path: root/src/unreal32.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>2004-12-03 06:07:44 +0000
committertrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-12-03 06:07:44 +0000
commit1aaeba38f4e5f3169ad1f17bbf28ceaae0af9f8a (patch)
tree22c3896351bc7634005a52958a5c993b1afa3c75 /src/unreal32.c
parentf18d506cad80b9ed28f02ee33f35332320f3ea04 (diff)
BUILD : 1.7.6 (469) BUGS : N/A NOTES : 1. ultimate3 setting the wrong channel mode on botserv bots 2. helpserv.c is doxygen ready, did some code clean up 3. Services Clients (+S) now override channel modes (yeah no more deopping NeoStats), this only works on ircds where there is a clear services mode (Unreal, Viagra, Ultimeate2/3) 4. send.c is doxygen ready, did some code clean up 5. commands.c id doxygen ready, did some code clean up
git-svn-id: svn://svn.anope.org/anope/trunk@469 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@323 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/unreal32.c')
-rw-r--r--src/unreal32.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/unreal32.c b/src/unreal32.c
index 90915071b..d3d92a8b7 100644
--- a/src/unreal32.c
+++ b/src/unreal32.c
@@ -102,6 +102,8 @@ IRCDVar ircd[] = {
0, /* +I support */
'&', /* SJOIN ban char */
'\"', /* SJOIN except char */
+ UMODE_S, /* Services Client mode */
+ 0, /* not p10 */
},
{NULL}
};
@@ -429,11 +431,21 @@ void anope_set_umode(User * user, int ac, char **av)
if (add) {
opcnt++;
- if (WallOper)
- anope_cmd_global(s_OperServ,
- "\2%s\2 is now an IRC operator.",
- user->nick);
- display_news(user, NEWS_OPER);
+ /* No need to display news to a services client */
+ if (user->mode & ircd->servicesmode) {
+ if (WallOper) {
+ anope_cmd_global(s_OperServ,
+ "\2%s\2 is now a Network Service.",
+ user->nick);
+ }
+ } else {
+ if (WallOper) {
+ anope_cmd_global(s_OperServ,
+ "\2%s\2 is now an IRC operator.",
+ user->nick);
+ }
+ display_news(user, NEWS_OPER);
+ }
} else {
opcnt--;
}