mirror of
https://github.com/anope/anope.git
synced 2026-07-09 00:43:13 +02:00
Fixed core clients to rejoin their assigned channels if killed
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2382 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+5
-6
@@ -44,15 +44,14 @@ int m_kill(const char *nick, const char *msg)
|
||||
BotInfo *bi;
|
||||
|
||||
/* Recover if someone kills us. */
|
||||
/* use nickIsServices() to reduce the number of lines of code - TSL */
|
||||
if (nickIsServices(nick, 0)) {
|
||||
introduce_user(nick);
|
||||
} else if (s_BotServ && (bi = findbot(nick))) {
|
||||
if (s_BotServ && (bi = findbot(nick)))
|
||||
{
|
||||
introduce_user(nick);
|
||||
bi->RejoinAll();
|
||||
} else {
|
||||
do_kill(nick, msg);
|
||||
}
|
||||
else
|
||||
do_kill(nick, msg);
|
||||
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user