mirror of
https://github.com/anope/anope.git
synced 2026-07-01 09:46:40 +02:00
Fix kick reason in cs_suspend and cs_forbid if no reason is given
This commit is contained in:
@@ -2,6 +2,7 @@ Anope Version 1.8 - GIT
|
||||
-------------------
|
||||
06/05 F Fixed modules being loaded regardless of the load abort signal. [#1527]
|
||||
08/16 F Fixed hs_request to show requested ident in memos [#1545]
|
||||
08/16 F Fix kick reason in cs_suspend/cs_forbid if no reason is given [#1544]
|
||||
|
||||
Provided by Michael Wobst - 2013
|
||||
05/25 U Update Hybrid protocol module to support Hybrid 8.1
|
||||
|
||||
@@ -137,7 +137,7 @@ static int do_forbid(User * u)
|
||||
|
||||
av[0] = c->name;
|
||||
av[1] = cu->user->nick;
|
||||
av[2] = reason ? reason : "CHAN_FORBID_REASON";
|
||||
av[2] = reason ? reason : getstring(cu->user->na, CHAN_FORBID_REASON);
|
||||
anope_cmd_kick(s_ChanServ, av[0], av[1], av[2]);
|
||||
do_kick(s_ChanServ, 3, av);
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ static int do_suspend(User * u)
|
||||
|
||||
av[0] = c->name;
|
||||
av[1] = cu->user->nick;
|
||||
av[2] = reason ? reason : "CHAN_SUSPEND_REASON";
|
||||
av[2] = reason ? reason : getstring(cu->user->na, CHAN_SUSPEND_REASON);
|
||||
anope_cmd_kick(s_ChanServ, av[0], av[1], av[2]);
|
||||
do_kick(s_ChanServ, 3, av);
|
||||
}
|
||||
|
||||
+2
-1
@@ -8,9 +8,10 @@ VERSION_MAJOR="1"
|
||||
VERSION_MINOR="8"
|
||||
VERSION_PATCH="9"
|
||||
VERSION_EXTRA="-git"
|
||||
VERSION_BUILD="3124"
|
||||
VERSION_BUILD="3125"
|
||||
|
||||
# Changes since 1.8.8 Release
|
||||
#Revision 3125 - Fix kick reason in cs_suspend and cs_forbid if no reason is given
|
||||
#Revision 3124 - hs_request: Improve logging of new vhost requests
|
||||
#Revision 3120 - Fix many memory leaks and valgrind warnings, see pull request #15
|
||||
#Revision 3119 - Fix not deleting the old server entry when juping existing servers on Unreal
|
||||
|
||||
Reference in New Issue
Block a user