diff options
Diffstat (limited to 'modules/protocol')
| -rw-r--r-- | modules/protocol/bahamut.cpp | 8 | ||||
| -rw-r--r-- | modules/protocol/inspircd11.cpp | 20 | ||||
| -rw-r--r-- | modules/protocol/inspircd12.cpp | 22 | ||||
| -rw-r--r-- | modules/protocol/inspircd20.cpp | 26 | ||||
| -rw-r--r-- | modules/protocol/ratbox.cpp | 12 | ||||
| -rw-r--r-- | modules/protocol/unreal32.cpp | 20 |
6 files changed, 54 insertions, 54 deletions
diff --git a/modules/protocol/bahamut.cpp b/modules/protocol/bahamut.cpp index 5ac8ff065..5c9a35032 100644 --- a/modules/protocol/bahamut.cpp +++ b/modules/protocol/bahamut.cpp @@ -342,7 +342,7 @@ int anope_event_sjoin(const Anope::string &source, int ac, const char **av) { User *u = finduser(source); if (!u) - Alog(LOG_DEBUG) << "SJOIN for nonexistant user " << source << " on " << c->name; + Log(LOG_DEBUG) << "SJOIN for nonexistant user " << source << " on " << c->name; else { EventReturn MOD_RESULT; @@ -380,7 +380,7 @@ int anope_event_sjoin(const Anope::string &source, int ac, const char **av) ChannelMode *cm = ModeManager::FindChannelModeByChar(ch); if (!cm) { - Alog() << "Receeved unknown mode prefix " << buf[0] << " in SJOIN string"; + Log() << "Receeved unknown mode prefix " << buf[0] << " in SJOIN string"; continue; } @@ -391,7 +391,7 @@ int anope_event_sjoin(const Anope::string &source, int ac, const char **av) User *u = finduser(buf); if (!u) { - Alog(LOG_DEBUG) << "SJOIN for nonexistant user " << buf << " on " << c->name; + Log(LOG_DEBUG) << "SJOIN for nonexistant user " << buf << " on " << c->name; continue; } @@ -662,7 +662,7 @@ int anope_event_ping(const Anope::string &source, int ac, const char **av) int anope_event_error(const Anope::string &source, int ac, const char **av) { if (ac >= 1) - Alog(LOG_DEBUG) << av[0]; + Log(LOG_DEBUG) << av[0]; return MOD_CONT; } diff --git a/modules/protocol/inspircd11.cpp b/modules/protocol/inspircd11.cpp index 453be6965..20b347899 100644 --- a/modules/protocol/inspircd11.cpp +++ b/modules/protocol/inspircd11.cpp @@ -392,7 +392,7 @@ int anope_event_fmode(const Anope::string &source, int ac, const char **av) { newav[o] = av[n]; ++o; - Alog(LOG_DEBUG) << "Param: " << newav[o - 1]; + Log(LOG_DEBUG) << "Param: " << newav[o - 1]; } ++n; } @@ -438,7 +438,7 @@ int anope_event_fjoin(const Anope::string &source, int ac, const char **av) if (!cm) { - Alog() << "Received unknown mode prefix " << buf[0] << " in FJOIN string"; + Log() << "Received unknown mode prefix " << buf[0] << " in FJOIN string"; buf.erase(buf.begin()); continue; } @@ -451,7 +451,7 @@ int anope_event_fjoin(const Anope::string &source, int ac, const char **av) User *u = finduser(buf); if (!u) { - Alog(LOG_DEBUG) << "FJOIN for nonexistant user " << buf << " on " << c->name; + Log(LOG_DEBUG) << "FJOIN for nonexistant user " << buf << " on " << c->name; continue; } @@ -526,7 +526,7 @@ int anope_event_topic(const Anope::string &source, int ac, const char **av) if (!c) { - Alog(LOG_DEBUG) << "TOPIC " << merge_args(ac - 1, av + 1) << " for nonexistent channel " << av[0]; + Log(LOG_DEBUG) << "TOPIC " << merge_args(ac - 1, av + 1) << " for nonexistent channel " << av[0]; return MOD_CONT; } @@ -628,7 +628,7 @@ int anope_event_setname(const Anope::string &source, int ac, const char **av) u = finduser(source); if (!u) { - Alog(LOG_DEBUG) << "SETNAME for nonexistent user " << source; + Log(LOG_DEBUG) << "SETNAME for nonexistent user " << source; return MOD_CONT; } @@ -646,7 +646,7 @@ int anope_event_chgname(const Anope::string &source, int ac, const char **av) u = finduser(source); if (!u) { - Alog(LOG_DEBUG) << "FNAME for nonexistent user " << source; + Log(LOG_DEBUG) << "FNAME for nonexistent user " << source; return MOD_CONT; } @@ -664,7 +664,7 @@ int anope_event_setident(const Anope::string &source, int ac, const char **av) u = finduser(source); if (!u) { - Alog(LOG_DEBUG) << "SETIDENT for nonexistent user " << source; + Log(LOG_DEBUG) << "SETIDENT for nonexistent user " << source; return MOD_CONT; } @@ -682,7 +682,7 @@ int anope_event_chgident(const Anope::string &source, int ac, const char **av) u = finduser(av[0]); if (!u) { - Alog(LOG_DEBUG) << "CHGIDENT for nonexistent user " << av[0]; + Log(LOG_DEBUG) << "CHGIDENT for nonexistent user " << av[0]; return MOD_CONT; } @@ -700,7 +700,7 @@ int anope_event_sethost(const Anope::string &source, int ac, const char **av) u = finduser(source); if (!u) { - Alog(LOG_DEBUG) << "SETHOST for nonexistent user " << source; + Log(LOG_DEBUG) << "SETHOST for nonexistent user " << source; return MOD_CONT; } @@ -755,7 +755,7 @@ int anope_event_chghost(const Anope::string &source, int ac, const char **av) u = finduser(source); if (!u) { - Alog(LOG_DEBUG) << "FHOST for nonexistent user " << source; + Log(LOG_DEBUG) << "FHOST for nonexistent user " << source; return MOD_CONT; } diff --git a/modules/protocol/inspircd12.cpp b/modules/protocol/inspircd12.cpp index 987590034..30d4f3600 100644 --- a/modules/protocol/inspircd12.cpp +++ b/modules/protocol/inspircd12.cpp @@ -417,7 +417,7 @@ int anope_event_fmode(const Anope::string &source, int ac, const char **av) { newav[o] = av[n]; ++o; - Alog(LOG_DEBUG) << "Param: " << newav[o - 1]; + Log(LOG_DEBUG) << "Param: " << newav[o - 1]; } ++n; } @@ -476,7 +476,7 @@ int anope_event_fjoin(const Anope::string &source, int ac, const char **av) ChannelMode *cm = ModeManager::FindChannelModeByChar(buf[0]); if (!cm) { - Alog() << "Receeved unknown mode prefix " << buf[0] << " in FJOIN string"; + Log() << "Receeved unknown mode prefix " << buf[0] << " in FJOIN string"; buf.erase(buf.begin()); continue; } @@ -490,7 +490,7 @@ int anope_event_fjoin(const Anope::string &source, int ac, const char **av) User *u = finduser(buf); if (!u) { - Alog(LOG_DEBUG) << "FJOIN for nonexistant user " << buf << " on " << c->name; + Log(LOG_DEBUG) << "FJOIN for nonexistant user " << buf << " on " << c->name; continue; } @@ -575,7 +575,7 @@ int anope_event_topic(const Anope::string &source, int ac, const char **av) if (!c) { - Alog(LOG_DEBUG) << "debug: TOPIC " << merge_args(ac - 1, av + 1) << " for nonexistent channel " << av[0]; + Log(LOG_DEBUG) << "debug: TOPIC " << merge_args(ac - 1, av + 1) << " for nonexistent channel " << av[0]; return MOD_CONT; } @@ -660,7 +660,7 @@ int anope_event_setname(const Anope::string &source, int ac, const char **av) u = finduser(source); if (!u) { - Alog(LOG_DEBUG) << "SETNAME for nonexistent user " << source; + Log(LOG_DEBUG) << "SETNAME for nonexistent user " << source; return MOD_CONT; } @@ -675,7 +675,7 @@ int anope_event_chgname(const Anope::string &source, int ac, const char **av) u = finduser(source); if (!u) { - Alog(LOG_DEBUG) << "FNAME for nonexistent user " << source; + Log(LOG_DEBUG) << "FNAME for nonexistent user " << source; return MOD_CONT; } @@ -690,7 +690,7 @@ int anope_event_setident(const Anope::string &source, int ac, const char **av) u = finduser(source); if (!u) { - Alog(LOG_DEBUG) << "SETIDENT for nonexistent user " << source; + Log(LOG_DEBUG) << "SETIDENT for nonexistent user " << source; return MOD_CONT; } @@ -705,7 +705,7 @@ int anope_event_chgident(const Anope::string &source, int ac, const char **av) u = finduser(av[0]); if (!u) { - Alog(LOG_DEBUG) << "CHGIDENT for nonexistent user " << av[0]; + Log(LOG_DEBUG) << "CHGIDENT for nonexistent user " << av[0]; return MOD_CONT; } @@ -720,7 +720,7 @@ int anope_event_sethost(const Anope::string &source, int ac, const char **av) u = finduser(source); if (!u) { - Alog(LOG_DEBUG) << "SETHOST for nonexistent user " << source; + Log(LOG_DEBUG) << "SETHOST for nonexistent user " << source; return MOD_CONT; } @@ -791,7 +791,7 @@ int anope_event_chghost(const Anope::string &source, int ac, const char **av) u = finduser(source); if (!u) { - Alog(LOG_DEBUG) << "FHOST for nonexistent user " << source; + Log(LOG_DEBUG) << "FHOST for nonexistent user " << source; return MOD_CONT; } @@ -1206,7 +1206,7 @@ int anope_event_endburst(const Anope::string &source, int ac, const char **av) u->RemoveMode(NickServ, UMODE_REGISTERED); } - Alog() << "Processed ENDBURST for " << s->GetName(); + Log(LOG_DEBUG) << "Processed ENDBURST for " << s->GetName(); s->Sync(true); return MOD_CONT; diff --git a/modules/protocol/inspircd20.cpp b/modules/protocol/inspircd20.cpp index 54c30d8df..1b6a582c0 100644 --- a/modules/protocol/inspircd20.cpp +++ b/modules/protocol/inspircd20.cpp @@ -415,7 +415,7 @@ int anope_event_fmode(const Anope::string &source, int ac, const char **av) { newav[o] = av[n]; ++o; - Alog(LOG_DEBUG) << "Param: " << newav[o - 1]; + Log(LOG_DEBUG) << "Param: " << newav[o - 1]; } ++n; } @@ -474,7 +474,7 @@ int anope_event_fjoin(const Anope::string &source, int ac, const char **av) ChannelMode *cm = ModeManager::FindChannelModeByChar(buf[0]); if (!cm) { - Alog() << "Recieved unknown mode prefix " << buf[0] << " in FJOIN string"; + Log() << "Recieved unknown mode prefix " << buf[0] << " in FJOIN string"; buf.erase(buf.begin()); continue; } @@ -488,7 +488,7 @@ int anope_event_fjoin(const Anope::string &source, int ac, const char **av) User *u = finduser(buf); if (!u) { - Alog(LOG_DEBUG) << "FJOIN for nonexistant user " << buf << " on " << c->name; + Log(LOG_DEBUG) << "FJOIN for nonexistant user " << buf << " on " << c->name; continue; } @@ -573,7 +573,7 @@ int anope_event_topic(const Anope::string &source, int ac, const char **av) if (!c) { - Alog(LOG_DEBUG) << "debug: TOPIC " << merge_args(ac - 1, av + 1) << " for nonexistent channel " << av[0]; + Log(LOG_DEBUG) << "debug: TOPIC " << merge_args(ac - 1, av + 1) << " for nonexistent channel " << av[0]; return MOD_CONT; } @@ -658,7 +658,7 @@ int anope_event_setname(const Anope::string &source, int ac, const char **av) u = finduser(source); if (!u) { - Alog(LOG_DEBUG) << "SETNAME for nonexistent user " << source; + Log(LOG_DEBUG) << "SETNAME for nonexistent user " << source; return MOD_CONT; } @@ -673,7 +673,7 @@ int anope_event_chgname(const Anope::string &source, int ac, const char **av) u = finduser(source); if (!u) { - Alog(LOG_DEBUG) << "FNAME for nonexistent user " << source; + Log(LOG_DEBUG) << "FNAME for nonexistent user " << source; return MOD_CONT; } @@ -688,7 +688,7 @@ int anope_event_setident(const Anope::string &source, int ac, const char **av) u = finduser(source); if (!u) { - Alog(LOG_DEBUG) << "SETIDENT for nonexistent user " << source; + Log(LOG_DEBUG) << "SETIDENT for nonexistent user " << source; return MOD_CONT; } @@ -702,7 +702,7 @@ int anope_event_chgident(const Anope::string &source, int ac, const char **av) if (!u) { - Alog(LOG_DEBUG) << "FIDENT for nonexistent user " << source; + Log(LOG_DEBUG) << "FIDENT for nonexistent user " << source; return MOD_CONT; } @@ -717,7 +717,7 @@ int anope_event_sethost(const Anope::string &source, int ac, const char **av) u = finduser(source); if (!u) { - Alog(LOG_DEBUG) << "SETHOST for nonexistent user " << source; + Log(LOG_DEBUG) << "SETHOST for nonexistent user " << source; return MOD_CONT; } @@ -788,7 +788,7 @@ int anope_event_chghost(const Anope::string &source, int ac, const char **av) u = finduser(source); if (!u) { - Alog(LOG_DEBUG) << "FHOST for nonexistent user " << source; + Log(LOG_DEBUG) << "FHOST for nonexistent user " << source; return MOD_CONT; } @@ -974,7 +974,7 @@ int anope_event_capab(const Anope::string &source, int ac, const char **av) if (cm) ModeManager::AddChannelMode(cm); else - Alog() << "Unrecognized mode string in CAPAB CHANMODES: " << capab; + Log() << "Unrecognized mode string in CAPAB CHANMODES: " << capab; } } else if (!strcasecmp(av[0], "USERMODES")) @@ -1030,7 +1030,7 @@ int anope_event_capab(const Anope::string &source, int ac, const char **av) if (um) ModeManager::AddUserMode(um); else - Alog() << "Unrecognized mode string in CAPAB USERMODES: " << capab; + Log() << "Unrecognized mode string in CAPAB USERMODES: " << capab; } } else if (!strcasecmp(av[0], "MODULES")) @@ -1179,7 +1179,7 @@ int anope_event_endburst(const Anope::string &source, int ac, const char **av) u->RemoveMode(NickServ, UMODE_REGISTERED); } - Alog() << "Processed ENDBURST for " << s->GetName(); + Log(LOG_DEBUG) << "Processed ENDBURST for " << s->GetName(); s->Sync(true); return MOD_CONT; diff --git a/modules/protocol/ratbox.cpp b/modules/protocol/ratbox.cpp index dc039682e..b45f1121a 100644 --- a/modules/protocol/ratbox.cpp +++ b/modules/protocol/ratbox.cpp @@ -102,7 +102,7 @@ void ratbox_cmd_pass(const Anope::string &pass) send_cmd("", "PASS %s TS 6 :%s", pass.c_str(), TS6SID.c_str()); } -class RatboxProto : public IRCDTS6Proto +class RatboxProto : public IRCDProto { void SendGlobopsInternal(BotInfo *source, const Anope::string &buf) { @@ -327,7 +327,7 @@ int anope_event_sjoin(const Anope::string &source, int ac, const char **av) ChannelMode *cm = ModeManager::FindChannelModeByChar(ch); if (!cm) { - Alog() << "Received unknown mode prefix " << buf[0] << " in SJOIN string"; + Log() << "Received unknown mode prefix " << buf[0] << " in SJOIN string"; continue; } @@ -338,7 +338,7 @@ int anope_event_sjoin(const Anope::string &source, int ac, const char **av) User *u = finduser(buf); if (!u) { - Alog(LOG_DEBUG) << "SJOIN for nonexistant user " << buf << " on " << c->name; + Log(LOG_DEBUG) << "SJOIN for nonexistant user " << buf << " on " << c->name; continue; } @@ -443,7 +443,7 @@ int anope_event_topic(const Anope::string &source, int ac, const char **av) if (!c) { - Alog(LOG_DEBUG) << "TOPIC " << merge_args(ac - 1, av + 1) << " for nonexistent channel " << av[0]; + Log(LOG_DEBUG) << "TOPIC " << merge_args(ac - 1, av + 1) << " for nonexistent channel " << av[0]; return MOD_CONT; } @@ -487,7 +487,7 @@ int anope_event_tburst(const Anope::string &source, int ac, const char **av) if (!c) { - Alog(LOG_DEBUG) << "debug: TOPIC " << merge_args(ac - 1, av + 1) << " for nonexistent channel " << av[0]; + Log(LOG_DEBUG) << "debug: TOPIC " << merge_args(ac - 1, av + 1) << " for nonexistent channel " << av[0]; return MOD_CONT; } @@ -721,7 +721,7 @@ int anope_event_bmask(const Anope::string &source, int ac, const char **av) int anope_event_error(const Anope::string &source, int ac, const char **av) { if (ac >= 1) - Alog(LOG_DEBUG) << av[0]; + Log(LOG_DEBUG) << av[0]; return MOD_CONT; } diff --git a/modules/protocol/unreal32.cpp b/modules/protocol/unreal32.cpp index cb1949cb7..5304e9d83 100644 --- a/modules/protocol/unreal32.cpp +++ b/modules/protocol/unreal32.cpp @@ -735,7 +735,7 @@ int anope_event_setname(const Anope::string &source, int ac, const char **av) u = finduser(source); if (!u) { - Alog(LOG_DEBUG) << "SETNAME for nonexistent user " << source; + Log(LOG_DEBUG) << "SETNAME for nonexistent user " << source; return MOD_CONT; } @@ -753,7 +753,7 @@ int anope_event_chgname(const Anope::string &source, int ac, const char **av) u = finduser(av[0]); if (!u) { - Alog(LOG_DEBUG) << "CHGNAME for nonexistent user " << av[0]; + Log(LOG_DEBUG) << "CHGNAME for nonexistent user " << av[0]; return MOD_CONT; } @@ -771,7 +771,7 @@ int anope_event_setident(const Anope::string &source, int ac, const char **av) u = finduser(source); if (!u) { - Alog(LOG_DEBUG) << "SETIDENT for nonexistent user " << source; + Log(LOG_DEBUG) << "SETIDENT for nonexistent user " << source; return MOD_CONT; } @@ -789,7 +789,7 @@ int anope_event_chgident(const Anope::string &source, int ac, const char **av) u = finduser(av[0]); if (!u) { - Alog(LOG_DEBUG) << "CHGIDENT for nonexistent user " << av[0]; + Log(LOG_DEBUG) << "CHGIDENT for nonexistent user " << av[0]; return MOD_CONT; } @@ -807,7 +807,7 @@ int anope_event_sethost(const Anope::string &source, int ac, const char **av) u = finduser(source); if (!u) { - Alog(LOG_DEBUG) << "SETHOST for nonexistent user " << source; + Log(LOG_DEBUG) << "SETHOST for nonexistent user " << source; return MOD_CONT; } @@ -920,7 +920,7 @@ int anope_event_chghost(const Anope::string &source, int ac, const char **av) u = finduser(av[0]); if (!u) { - Alog(LOG_DEBUG) << "debug: CHGHOST for nonexistent user " << av[0]; + Log(LOG_DEBUG) << "debug: CHGHOST for nonexistent user " << av[0]; return MOD_CONT; } @@ -972,9 +972,9 @@ int anope_event_error(const Anope::string &source, int ac, const char **av) { if (av[0]) { - Alog(LOG_DEBUG) << av[0]; + Log(LOG_DEBUG) << av[0]; if (strstr(av[0], "No matching link configuration")) - Alog() << "Error: Your IRCD's link block may not be setup correctly, please check unrealircd.conf"; + Log() << "Error: Your IRCD's link block may not be setup correctly, please check unrealircd.conf"; } return MOD_CONT; } @@ -1063,7 +1063,7 @@ int anope_event_sjoin(const Anope::string &source, int ac, const char **av) ChannelMode *cm = ModeManager::FindChannelModeByChar(ch); if (!cm) { - Alog() << "Received unknown mode prefix " << buf[0] << " in SJOIN string"; + Log() << "Received unknown mode prefix " << buf[0] << " in SJOIN string"; continue; } @@ -1074,7 +1074,7 @@ int anope_event_sjoin(const Anope::string &source, int ac, const char **av) User *u = finduser(buf); if (!u) { - Alog(LOG_DEBUG) << "SJOIN for nonexistant user " << buf << " on " << c->name; + Log(LOG_DEBUG) << "SJOIN for nonexistant user " << buf << " on " << c->name; continue; } |
