mirror of
https://github.com/anope/anope.git
synced 2026-07-02 14:53:13 +02:00
Backport of bugfix for buf #1065 from SVN r2192, original patch from DukePyrolator, force a user off a nick when it is suspended.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2193 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -75,6 +75,7 @@ void myNickServHelp(User * u)
|
||||
int do_suspend(User * u)
|
||||
{
|
||||
NickAlias *na, *na2;
|
||||
User *u2;
|
||||
char *nick = strtok(NULL, " ");
|
||||
char *reason = strtok(NULL, "");
|
||||
int i;
|
||||
@@ -115,6 +116,11 @@ int do_suspend(User * u)
|
||||
if (na2->nc == na->nc) {
|
||||
na2->status &= ~(NS_IDENTIFIED | NS_RECOGNIZED);
|
||||
na2->last_quit = sstrdup(reason);
|
||||
/* remove nicktracking */
|
||||
if ((u2 = finduser(na2->nick)))
|
||||
u2->nc = NULL;
|
||||
/* force guestnick */
|
||||
collide(na2, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -9,10 +9,11 @@ VERSION_MAJOR="1"
|
||||
VERSION_MINOR="8"
|
||||
VERSION_PATCH="0"
|
||||
VERSION_EXTRA="-svn"
|
||||
VERSION_BUILD="2189"
|
||||
VERSION_BUILD="2193"
|
||||
|
||||
# $Log$ # Changes since 1.8.0 Release
|
||||
|
||||
#Revision 2193 - Backport of bugfix for bug #1065 from SVN r2192, original patch from DukePyrolator, force a user off a nick when it is suspended.
|
||||
#Revision 2189 - Backport of bugfix for bug #1064 from SVN r2188, original patch from DukePyrolator, fixes NS RECOVER so it doesn't display "(null)" in some places.
|
||||
#Revision 2187 - Backport of bugfix for bug #1062 from SVN r2185 and 2186, patch from Adam, BS ASSIGN, BS ACT, and BS SAY should no longer send revealing error messages to users without access.
|
||||
#Revision 2182 - Fix memleak in channels.c from DukePyrolator. (Same fix applied to 1.9 earlier). Thanks DP!
|
||||
|
||||
Reference in New Issue
Block a user