1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 15:43:13 +02:00

Pretty large coding style cleanup, in source doc

cleanup, and allow protocol mods to depend on each
other
This commit is contained in:
Adam
2012-11-22 00:50:33 -05:00
parent 368d469631
commit d33a0f75a5
303 changed files with 7880 additions and 9388 deletions
+4 -4
View File
@@ -29,11 +29,11 @@ class CommandOSOLine : public Command
User *u2 = NULL;
/* let's check whether the user is online */
if (!(u2 = finduser(nick)))
if (!(u2 = User::Find(nick, true)))
source.Reply(NICK_X_NOT_IN_USE, nick.c_str());
else if (u2 && flag[0] == '+')
{
ircdproto->SendSVSO(source.service, nick, flag);
IRCD->SendSVSO(source.service, nick, flag);
u2->SetMode(source.service, UMODE_OPER);
u2->SendMessage(source.service, _("You are now an IRC Operator."));
source.Reply(_("Operflags \002%s\002 have been added for \002%s\002."), flag.c_str(), nick.c_str());
@@ -41,7 +41,7 @@ class CommandOSOLine : public Command
}
else if (u2 && flag[0] == '-')
{
ircdproto->SendSVSO(source.service, nick, flag);
IRCD->SendSVSO(source.service, nick, flag);
source.Reply(_("Operflags \002%s\002 have been added for \002%s\002."), flag.c_str(), nick.c_str());
Log(LOG_ADMIN, source, this) << "for " << nick;
}
@@ -72,7 +72,7 @@ class OSOLine : public Module
{
this->SetAuthor("Anope");
if (!ircdproto || !ircdproto->CanSVSO)
if (!IRCD || !IRCD->CanSVSO)
throw ModuleException("Your IRCd does not support OMODE.");
}