1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 20:23:14 +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
+5 -5
View File
@@ -32,19 +32,19 @@ class CommandCSUp : public Command
for (UChannelList::iterator it = u->chans.begin(); it != u->chans.end(); ++it)
{
Channel *c = (*it)->chan;
chan_set_correct_modes(u, c, 1, false);
c->SetCorrectModes(u, true, false);
}
else
{
const Anope::string &channel = params[0];
Channel *c = findchan(params[0]);
Channel *c = Channel::Find(params[0]);
if (c == NULL)
source.Reply(CHAN_X_NOT_IN_USE, channel.c_str());
else if (!c->ci)
source.Reply(CHAN_X_NOT_REGISTERED, channel.c_str());
else
chan_set_correct_modes(u, c, 1, false);
c->SetCorrectModes(u, true, false);
}
}
@@ -67,7 +67,7 @@ class CommandCSDown : public Command
{
ChannelMode *cm = ModeManager::ChannelModes[i];
if (cm != NULL && cm->Type == MODE_STATUS)
if (cm != NULL && cm->type == MODE_STATUS)
c->RemoveMode(NULL, cm, u->nick);
}
}
@@ -94,7 +94,7 @@ class CommandCSDown : public Command
else
{
const Anope::string &channel = params[0];
Channel *c = findchan(params[0]);
Channel *c = Channel::Find(params[0]);
if (c == NULL)
source.Reply(CHAN_X_NOT_IN_USE, channel.c_str());