summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2009-02-14 21:14:36 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2009-02-14 21:14:36 +0000
commitf209cce90b394acd26e22eacef0bff61e8f5b4e1 (patch)
tree28374af9d5fc3db87f66477493dc9569d809f518 /src/helperfuncs.cpp
parent60ab529ad481d5727991901ab0252d84164ccdc0 (diff)
Nuke trailing spaces
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11105 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index f38b3e6b5..c56dc39ae 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -55,7 +55,7 @@ User* InspIRCd::FindNick(const char* nick)
return FindUUID(nick);
user_hash::iterator iter = this->Users->clientlist->find(nick);
-
+
if (iter == this->Users->clientlist->end())
return NULL;
@@ -204,7 +204,7 @@ bool IsChannelHandler::Call(const char *chname, size_t max)
c++;
}
- size_t len = c - chname;
+ size_t len = c - chname;
/* too long a name - note funky pointer arithmetic here. */
if (len > max)
{
@@ -219,7 +219,7 @@ bool IsNickHandler::Call(const char* n, size_t max)
{
if (!n || !*n)
return false;
-
+
unsigned int p = 0;
for (const char* i = n; *i; i++, p++)
{
@@ -443,7 +443,7 @@ void InspIRCd::AddExtBanChar(char c)
{
std::string &tok = Config->data005;
std::string::size_type ebpos;
-
+
if ((ebpos = tok.find(" EXTBAN=,")) == std::string::npos)
{
tok.append(" EXTBAN=,");
@@ -452,6 +452,3 @@ void InspIRCd::AddExtBanChar(char c)
else
tok.insert(ebpos + 9, 1, c);
}
-
-
-