mirror of
https://github.com/anope/anope.git
synced 2026-07-01 08:56:37 +02:00
Make inspircds module class names not conflict because it confuses OSX
This commit is contained in:
@@ -1342,7 +1342,7 @@ struct IRCDMessageUID : IRCDMessage
|
||||
}
|
||||
};
|
||||
|
||||
class ProtoInspIRCd : public Module
|
||||
class ProtoInspIRCd12 : public Module
|
||||
{
|
||||
InspIRCd12Proto ircd_proto;
|
||||
ExtensibleItem<bool> ssl;
|
||||
@@ -1386,7 +1386,7 @@ class ProtoInspIRCd : public Module
|
||||
IRCDMessageUID message_uid;
|
||||
|
||||
public:
|
||||
ProtoInspIRCd(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, PROTOCOL | VENDOR),
|
||||
ProtoInspIRCd12(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, PROTOCOL | VENDOR),
|
||||
ircd_proto(this), ssl(this, "ssl"),
|
||||
message_away(this), message_error(this), message_invite(this), message_join(this), message_kick(this), message_kill(this),
|
||||
message_motd(this), message_notice(this), message_part(this), message_ping(this), message_privmsg(this), message_quit(this),
|
||||
@@ -1419,4 +1419,4 @@ class ProtoInspIRCd : public Module
|
||||
}
|
||||
};
|
||||
|
||||
MODULE_INIT(ProtoInspIRCd)
|
||||
MODULE_INIT(ProtoInspIRCd12)
|
||||
|
||||
@@ -662,7 +662,7 @@ struct IRCDMessageFIdent : IRCDMessage
|
||||
}
|
||||
};
|
||||
|
||||
class ProtoInspIRCd : public Module
|
||||
class ProtoInspIRCd20 : public Module
|
||||
{
|
||||
Module *m_insp12;
|
||||
|
||||
@@ -703,7 +703,7 @@ class ProtoInspIRCd : public Module
|
||||
}
|
||||
|
||||
public:
|
||||
ProtoInspIRCd(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, PROTOCOL | VENDOR),
|
||||
ProtoInspIRCd20(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, PROTOCOL | VENDOR),
|
||||
ircd_proto(this),
|
||||
message_away(this), message_error(this), message_invite(this), message_join(this), message_kick(this),
|
||||
message_kill(this), message_motd(this), message_notice(this), message_part(this), message_ping(this),
|
||||
@@ -739,7 +739,7 @@ class ProtoInspIRCd : public Module
|
||||
|
||||
}
|
||||
|
||||
~ProtoInspIRCd()
|
||||
~ProtoInspIRCd20()
|
||||
{
|
||||
m_insp12 = ModuleManager::FindModule("inspircd12");
|
||||
ModuleManager::UnloadModule(m_insp12, NULL);
|
||||
@@ -827,4 +827,4 @@ class ProtoInspIRCd : public Module
|
||||
}
|
||||
};
|
||||
|
||||
MODULE_INIT(ProtoInspIRCd)
|
||||
MODULE_INIT(ProtoInspIRCd20)
|
||||
|
||||
Reference in New Issue
Block a user