1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 07:13:13 +02:00

BUILD : 1.7.21 (1357) BUGS : 836 NOTES : Fixed memleaks in os_clearmodes

git-svn-id: svn://svn.anope.org/anope/trunk@1357 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1072 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
2008-01-26 10:15:04 +00:00
parent 6d33eeb6b3
commit 1e23c7fdf0
3 changed files with 10 additions and 5 deletions
+1
View File
@@ -9,6 +9,7 @@ Anope Version S V N
01/26 F Various oddities in moduleAddData(). [#833]
01/26 F Various oddities in ChanServ suspend code. [#834]
01/26 F Channel walking for mass modes and restoring topics. [#835]
01/26 F Memory leaks in OperServ CLEARMODES. [#836]
Provided by Jan Milants <jan_renee@msn.com> - 2008
01/16 F Server traversion with next_server() failed to list all servers. [#831]
+4 -4
View File
@@ -155,7 +155,7 @@ int do_clearmodes(User * u)
if (!chan_has_user_status(c, cu->user, CUS_VOICE))
continue;
argv[0] = sstrdup("-v");
argv[1] = sstrdup(cu->user->nick);
argv[1] = cu->user->nick;
anope_cmd_mode(s_OperServ, c->name, "-v %s",
cu->user->nick);
chan_set_modes(s_OperServ, c, 2, argv, 0);
@@ -182,7 +182,7 @@ int do_clearmodes(User * u)
if (!chan_has_user_status(c, cu->user, CUS_HALFOP))
continue;
argv[0] = sstrdup("-h");
argv[1] = sstrdup(cu->user->nick);
argv[1] = cu->user->nick;
anope_cmd_mode(s_OperServ, c->name, "-h %s",
cu->user->nick);
chan_set_modes(s_OperServ, c, 2, argv, 0);
@@ -208,7 +208,7 @@ int do_clearmodes(User * u)
if (!chan_has_user_status(c, cu->user, CUS_OWNER))
continue;
argv[0] = sstrdup(ircd->ownerunset);
argv[1] = sstrdup(cu->user->nick);
argv[1] = cu->user->nick;
anope_cmd_mode(s_OperServ, c->name, "%s %s",
ircd->ownerunset, cu->user->nick);
chan_set_modes(s_OperServ, c, 2, argv, 0);
@@ -235,7 +235,7 @@ int do_clearmodes(User * u)
if (!chan_has_user_status(c, cu->user, CUS_PROTECT))
continue;
argv[0] = sstrdup(ircd->adminunset);
argv[1] = sstrdup(cu->user->nick);
argv[1] = cu->user->nick;
anope_cmd_mode(s_OperServ, c->name, "%s %s",
ircd->adminunset, cu->user->nick);
chan_set_modes(s_OperServ, c, 2, argv, 0);
+5 -1
View File
@@ -9,10 +9,14 @@ VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="21"
VERSION_EXTRA="-svn"
VERSION_BUILD="1356"
VERSION_BUILD="1357"
# $Log$
#
# BUILD : 1.7.21 (1357)
# BUGS : 836
# NOTES : Fixed memleaks in os_clearmodes
#
# BUILD : 1.7.21 (1356)
# BUGS : 835
# NOTES : Fixed channel walking for do_mass_mode() and restore_unsynced_topics() to use firstchan/nextchan