summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsjaz <sjaz@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-06 16:40:07 +0000
committersjaz <sjaz@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-06 16:40:07 +0000
commitfbb1ab92468cce3b4414a1232c4efc77d34e27c8 (patch)
tree2f15cdc566cd0f462cb11fbd092838344163c78e
parentcd034d69358ec05812cbb9e7b38c674b07e654bc (diff)
Patch to make changing bots not send multiple QUIT commands (Thanks Adam).
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2265 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--src/core/bs_bot.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/bs_bot.c b/src/core/bs_bot.c
index 750760e85..36aa70b73 100644
--- a/src/core/bs_bot.c
+++ b/src/core/bs_bot.c
@@ -300,9 +300,10 @@ class CommandBSBot : public Command
if (user)
{
- ircdproto->SendQuit(bi, "Quit: Be right back");
- // This isn't the nicest way to do this, unfortunately.
- bi->uid = ts6_uid_retrieve();
+ if (ircd->ts6) {
+ // This isn't the nicest way to do this, unfortunately.
+ bi->uid = ts6_uid_retrieve();
+ }
ircdproto->SendClientIntroduction(bi->nick, bi->user, bi->host, bi->real,
ircd->pseudoclient_mode, bi->uid.c_str());
bi->RejoinAll();