summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-15 02:56:37 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-15 02:56:37 +0000
commitd01f309b27f3cafa2454689898856e347f5b12c4 (patch)
treedddd245995842a896f47cbcee102595bf5c82687 /src
parent7e2a7f07bedd3cee6c4299ab98e49705ed35ebcd (diff)
- Nazi stylistic changes.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3207 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_kicknorejoin.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/modules/m_kicknorejoin.cpp b/src/modules/m_kicknorejoin.cpp
index dab129cb2..e134ee317 100644
--- a/src/modules/m_kicknorejoin.cpp
+++ b/src/modules/m_kicknorejoin.cpp
@@ -37,14 +37,14 @@ public:
{
if ((modechar == 'J') && (type == MT_CHANNEL))
{
- if(!mode_on)
+ if (!mode_on)
{
// Taking the mode off, we need to clean up.
chanrec* c = (chanrec*)target;
delaylist* dl = (delaylist*)c->GetExt("norejoinusers");
- if(dl)
+ if (dl)
{
delete dl;
c->Shrink("norejoinusers");
@@ -57,23 +57,23 @@ public:
virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname)
{
- if(chan)
+ if (chan)
{
delaylist* dl = (delaylist*)chan->GetExt("norejoinusers");
log(DEBUG, "m_kicknorejoin.so: tried to grab delay list");
- if(dl)
+ if (dl)
{
log(DEBUG, "m_kicknorejoin.so: got delay list, iterating over it");
std::vector<userrec*> itemstoremove;
- for(delaylist::iterator iter = dl->begin(); iter != dl->end(); iter++)
+ for (delaylist::iterator iter = dl->begin(); iter != dl->end(); iter++)
{
log(DEBUG, "m_kicknorejoin.so:\t[%s] => %d", iter->first->nick, iter->second);
- if(iter->second > time(NULL))
+ if (iter->second > time(NULL))
{
log(DEBUG, "m_kicknorejoin.so: still inside time slot");
- if(iter->first == user)
+ if (iter->first == user)
{
log(DEBUG, "m_kicknorejoin.so: and we have the right user");
WriteServ(user->fd, "495 %s %s :You cannot rejoin this channel yet after being kicked (+J)", user->nick, chan->name);
@@ -88,10 +88,10 @@ public:
}
}
- for(unsigned int i = 0; i < itemstoremove.size(); i++)
+ for (unsigned int i = 0; i < itemstoremove.size(); i++)
dl->erase(itemstoremove[i]);
- if(!dl->size())
+ if (!dl->size())
{
// Now it's empty..
delete dl;
@@ -104,11 +104,11 @@ public:
virtual void OnUserKick(userrec* source, userrec* user, chanrec* chan, std::string reason)
{
- if(chan->IsCustomModeSet('J') && (source != user))
+ if (chan->IsCustomModeSet('J') && (source != user))
{
delaylist* dl = (delaylist*)chan->GetExt("norejoinusers");
- if(!dl)
+ if (!dl)
{
dl = new delaylist;
chan->Extend("norejoinusers", (char*)dl);
@@ -123,7 +123,7 @@ public:
{
delaylist* dl = (delaylist*)chan->GetExt("norejoinusers");
- if(dl)
+ if (dl)
{
delete dl;
chan->Shrink("norejoinusers");