X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_customtitle.cpp;h=446ac2475b7339db724622670062ff0e2c253542;hb=46e56dedd37abe33af4e8b970d5b83729dc1ef05;hp=9ff250cd6349583dc138f5f8a5e52d4653861baa;hpb=6d03943426dcce76ba66567a9b18425a5ebb4c0c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_customtitle.cpp b/src/modules/m_customtitle.cpp index 9ff250cd6..446ac2475 100644 --- a/src/modules/m_customtitle.cpp +++ b/src/modules/m_customtitle.cpp @@ -2,7 +2,7 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2009 InspIRCd Development Team + * InspIRCd: (C) 2002-2010 InspIRCd Development Team * See: http://wiki.inspircd.org/Credits * * This program is free but copyrighted software; see @@ -53,14 +53,14 @@ class CommandTitle : public Command ConfigReader Conf; for (int i=0; iPassCompare(user, pass.c_str(), parameters[1].c_str(), hash.c_str()) && OneOfMatches(TheHost,TheIP,host.c_str()) && !title.empty()) + if (!strcmp(Name.c_str(),parameters[0].c_str()) && !ServerInstance->PassCompare(user, pass.c_str(), parameters[1].c_str(), hash.c_str()) && OneOfMatches(TheHost,TheIP,host.c_str()) && !title.empty()) { ctitle.set(user, title); @@ -89,7 +89,7 @@ class ModuleCustomTitle : public Module ModuleCustomTitle() : cmd(this) { ServerInstance->AddCommand(&cmd); - Extensible::Register(&cmd.ctitle); + ServerInstance->Extensions.Register(&cmd.ctitle); ServerInstance->Modules->Attach(I_OnWhoisLine, this); } @@ -116,7 +116,7 @@ class ModuleCustomTitle : public Module Version GetVersion() { - return Version("Custom Title for users", VF_COMMON | VF_VENDOR); + return Version("Custom Title for users", VF_OPTCOMMON | VF_VENDOR); } };