summaryrefslogtreecommitdiff
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-10-30 15:42:11 +0000
committertrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-10-30 15:42:11 +0000
commit6e55319bdb0dcc6d27e7140e963ecfac776548c1 (patch)
tree8000adc356c1edc1346906330574b2163ea422cd
parent327bead9394d818df8f0dc5613a10503eec48311 (diff)
BUILD : 1.7.5 (436) BUGS : 207 NOTES : Fixed up OS CLEARMODES
git-svn-id: svn://svn.anope.org/anope/trunk@436 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@291 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--Changes1
-rw-r--r--src/operserv.c9
-rw-r--r--version.log6
3 files changed, 13 insertions, 3 deletions
diff --git a/Changes b/Changes
index e2ea718f5..d975a4a34 100644
--- a/Changes
+++ b/Changes
@@ -34,6 +34,7 @@ Provided by Trystan <trystan@nomadirc.net> - 2004
09/07 A Ircd CHANMODE now trapped and stored. [ #00]
08/23 A New protocol independent design (aka anope-capab). [ #00]
08/28 A New IRCD document for adding new ircd support to new design. [ #00]
+10/30 F Fixed OS CLEARMODE, so the correct messages are sent [#207]
10/30 F Fixed MS INFO using the correct message [#205]
10/29 F Fixed CS CLEAR MODES not resetting the modes [#182]
10/29 F Fixed LogUser message, now normalizes the "realname" for display [#199]
diff --git a/src/operserv.c b/src/operserv.c
index 542e23b13..d17e06216 100644
--- a/src/operserv.c
+++ b/src/operserv.c
@@ -1603,8 +1603,10 @@ static int do_clearmodes(User * u)
if (!chan) {
syntax_error(s_OperServ, u, "CLEARMODES", OPER_CLEARMODES_SYNTAX);
+ return MOD_CONT;
} else if (!(c = findchan(chan))) {
notice_lang(s_OperServ, u, CHAN_X_NOT_IN_USE, chan);
+ return MOD_CONT;
} else if (c->bouncy_modes) {
notice_lang(s_OperServ, u, OPER_BOUNCY_MODES_U_LINE);
return MOD_CONT;
@@ -1778,10 +1780,13 @@ static int do_clearmodes(User * u)
free(invites);
}
-
}
- notice_lang(s_OperServ, u, OPER_CLEARMODES_ALL_DONE, chan);
+ if (all) {
+ notice_lang(s_OperServ, u, OPER_CLEARMODES_ALL_DONE, chan);
+ } else {
+ notice_lang(s_OperServ, u, OPER_CLEARMODES_DONE, chan);
+ }
return MOD_CONT;
}
diff --git a/version.log b/version.log
index a981c6e58..01ed05673 100644
--- a/version.log
+++ b/version.log
@@ -8,10 +8,14 @@
VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="5"
-VERSION_BUILD="435"
+VERSION_BUILD="436"
# $Log$
#
+# BUILD : 1.7.5 (436)
+# BUGS : 207
+# NOTES : Fixed up OS CLEARMODES
+#
# BUILD : 1.7.5 (435)
# BUGS : 203, 204, 205
# NOTES : 1. minor fix to CS CLEAR, 2. Added to DrSteins more CS obsecure password, 3. fixed memoserv not using the