From d01f309b27f3cafa2454689898856e347f5b12c4 Mon Sep 17 00:00:00 2001 From: w00t Date: Wed, 15 Feb 2006 02:56:37 +0000 Subject: - Nazi stylistic changes. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3207 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_kicknorejoin.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/modules') 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 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"); -- cgit v1.2.3