From ab85c3fe9be39082d0b4ac4780e340dee5a64dce Mon Sep 17 00:00:00 2001 From: rburchell Date: Fri, 21 Nov 2008 09:55:32 +0000 Subject: Fix ident changing being broken git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1769 5417fbe8-f217-4b02-8779-1006273d7864 --- src/protocol/inspircd12.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') 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 */ -- cgit