diff options
author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-21 09:55:32 +0000 |
---|---|---|
committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-21 09:55:32 +0000 |
commit | ab85c3fe9be39082d0b4ac4780e340dee5a64dce (patch) | |
tree | 056251d222fb491415338ff361f4eab65b1b75c2 /src/protocol/inspircd12.cpp | |
parent | 84d9048b21437cb1cde661f5c067427e299f2b48 (diff) |
Fix ident changing being broken
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1769 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/inspircd12.cpp')
-rw-r--r-- | src/protocol/inspircd12.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/protocol/inspircd12.cpp b/src/protocol/inspircd12.cpp index 51c614a70..0a09aa293 100644 --- a/src/protocol/inspircd12.cpp +++ b/src/protocol/inspircd12.cpp @@ -619,13 +619,15 @@ class InspIRCdProto : public IRCDProto /* CHGIDENT */ void inspircd_cmd_chgident(const char *nick, const char *vIdent) { - if (has_chgidentmod == 1) + if (has_chgidentmod == 0) { ircdproto->SendGlobops(s_OperServ, "CHGIDENT not loaded!"); } - - BotInfo *bi = findbot(s_OperServ); - send_cmd(bi->uid, "CHGIDENT %s %s", nick, vIdent); + else + { + BotInfo *bi = findbot(s_OperServ); + send_cmd(bi->uid, "CHGIDENT %s %s", nick, vIdent); + } } /* SVSHOLD - set */ |