From 365fd7e1e903e99d7e3399487d1cf9204ebe64fa Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 18 Aug 2006 19:53:23 +0000 Subject: Indent tidyup git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4970 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_silence.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_silence.cpp b/src/modules/m_silence.cpp index c331de38a..7f8b49287 100644 --- a/src/modules/m_silence.cpp +++ b/src/modules/m_silence.cpp @@ -86,18 +86,18 @@ class cmd_silence : public command_t if (sl->size()) { for (silencelist::iterator i = sl->begin(); i != sl->end(); i++) - { + { // search through for the item irc::string listitem = i->c_str(); if (listitem == mask) - { - sl->erase(i); + { + sl->erase(i); user->WriteServ("950 %s %s :Removed %s from silence list",user->nick, user->nick, mask.c_str()); break; - } - } + } + } } - if (!sl->size()) + else { // tidy up -- if a user's list is empty, theres no use having it // hanging around in the user record. -- cgit v1.2.3