summaryrefslogtreecommitdiff
path: root/modules/protocol/ngircd.cpp
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@anope.org>2012-11-22 21:44:51 +0100
committerDukePyrolator <DukePyrolator@anope.org>2012-11-22 21:44:51 +0100
commit796353494062ef45389c196b119f04e6abcd114e (patch)
treee7e2356f785dae91242dead29568e6ce7ff479ce /modules/protocol/ngircd.cpp
parentd33a0f75a5c0c584fbb7cc0076da36d494f39494 (diff)
fixed some compile errors
Diffstat (limited to 'modules/protocol/ngircd.cpp')
-rw-r--r--modules/protocol/ngircd.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/protocol/ngircd.cpp b/modules/protocol/ngircd.cpp
index 28d534d2a..6baad0edd 100644
--- a/modules/protocol/ngircd.cpp
+++ b/modules/protocol/ngircd.cpp
@@ -159,7 +159,7 @@ class ngIRCdProto : public IRCDProto
{
if (!u->HasMode(UMODE_CLOAK))
{
- const BotInfo *bi = findbot(Config->HostServ);
+ const BotInfo *bi = BotInfo::Find(Config->HostServ);
u->SetMode(bi, UMODE_CLOAK);
// send the modechange before we send the vhost
ModeManager::ProcessModes();
@@ -328,7 +328,7 @@ struct IRCDMessageJoin : Message::Join
struct IRCDMessageMetadata : IRCDMessage
{
- IRCDMessageMetadata() : IRCDMessage("METADATA", 3) { SetFlag(IRCDMESSAGE_REQUIRE_SERVER); }
+ IRCDMessageMetadata(Module *creator) : IRCDMessage(creator, "METADATA", 3) { SetFlag(IRCDMESSAGE_REQUIRE_SERVER); }
/*
* Received: :ngircd.dev.anope.de METADATA DukePyrolator host :anope-e2ee5c7d
@@ -345,7 +345,7 @@ struct IRCDMessageMetadata : IRCDMessage
bool Run(MessageSource &source, const std::vector<Anope::string> &params) anope_override
{
- User *u = finduser(params[0]);
+ User *u = User::Find(params[0]);
if (!u)
{
Log() << "received METADATA for non-existent user " << params[0];
@@ -676,9 +676,9 @@ class ProtongIRCd : public Module
message_part(this), message_ping(this), message_privmsg(this), message_squery(this, "SQUERY"),
message_quit(this), message_squit(this), message_stats(this), message_time(this), message_version(this),
- message_005(this), message_376(this), message_chaninfo(this), message_join(this), message_mode(this),
- message_nick(this), message_njoin(this), message_pong(this), message_server(this), message_topic(this)
-
+ message_005(this), message_376(this), message_chaninfo(this), message_join(this), message_metadata(this),
+ message_mode(this), message_nick(this), message_njoin(this), message_pong(this), message_server(this),
+ message_topic(this)
{
this->SetAuthor("Anope");