diff options
| author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-02-28 22:12:09 +0000 |
|---|---|---|
| committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-02-28 22:12:09 +0000 |
| commit | ab1f8e01faf322f2da77369e5700f2e7ff817ae5 (patch) | |
| tree | 88830e0943e5cda5912dc5a1eba8995615afd9ae /src/channels.c | |
| parent | 3f80e1cad02735f692a5a300ee3b200a21f330aa (diff) | |
Made it so you can register empty nonregistered channels to make registering channels through SQL a bit more effective, fixed a some small bugs found on the testnet, added some missing modes into InspIRCd1.2 support, and updated TODO and Changes.lang
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2799 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/channels.c')
| -rw-r--r-- | src/channels.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/channels.c b/src/channels.c index 564989bd3..45b4f9d8c 100644 --- a/src/channels.c +++ b/src/channels.c @@ -820,14 +820,14 @@ void Channel::SetModes(BotInfo *bi, bool EnforceMLock, const char *cmodes, ...) if (add) { - if (cm->Type == MODE_PARAM && sep.GetToken(sbuf)) + if (cm->Type != MODE_REGULAR && sep.GetToken(sbuf)) this->SetMode(bi, cm, sbuf, EnforceMLock); else this->SetMode(bi, cm, "", EnforceMLock); } else if (add == 0) { - if (cm->Type == MODE_PARAM && sep.GetToken(sbuf)) + if (cm->Type != MODE_REGULAR && sep.GetToken(sbuf)) this->RemoveMode(bi, cm, sbuf, EnforceMLock); else this->RemoveMode(bi, cm, "", EnforceMLock); |
