mirror of
https://github.com/anope/anope.git
synced 2026-06-29 12:16:38 +02:00
Fix bug #1065, patch from DukePyrolator, force a user off a nick when it is suspended.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2192 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -27,6 +27,7 @@ class CommandNSSuspend : public Command
|
||||
CommandReturn Execute(User *u, std::vector<std::string> ¶ms)
|
||||
{
|
||||
NickAlias *na, *na2;
|
||||
User *u2;
|
||||
const char *nick = params[0].c_str();
|
||||
const char *reason = params[1].c_str();
|
||||
int i;
|
||||
@@ -68,6 +69,11 @@ class CommandNSSuspend : public Command
|
||||
{
|
||||
na2->status &= ~(NS_IDENTIFIED | NS_RECOGNIZED);
|
||||
na2->last_quit = sstrdup(reason);
|
||||
/* removes nicktracking */
|
||||
if ((u2 = finduser(na2->nick)))
|
||||
u2->nc = NULL;
|
||||
/* force guestnick */
|
||||
collide(na2, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user