summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_cgiirc.cpp4
-rw-r--r--src/modules/m_cloaking.cpp12
-rw-r--r--src/modules/m_hostchange.cpp4
-rw-r--r--src/modules/m_ircv3_sts.cpp2
-rw-r--r--src/modules/m_showwhois.cpp2
-rw-r--r--src/modules/m_spanningtree/uid.cpp2
6 files changed, 13 insertions, 13 deletions
diff --git a/src/modules/m_cgiirc.cpp b/src/modules/m_cgiirc.cpp
index df8201bde..4c89ad894 100644
--- a/src/modules/m_cgiirc.cpp
+++ b/src/modules/m_cgiirc.cpp
@@ -311,7 +311,7 @@ class ModuleCgiIRC
}
else
{
- throw ModuleException(type + " is an invalid <cgihost:mask> type, at " + tag->getTagLocation());
+ throw ModuleException(type + " is an invalid <cgihost:mask> type, at " + tag->getTagLocation());
}
}
@@ -369,7 +369,7 @@ class ModuleCgiIRC
user->ChangeIdent(newident);
user->SetClientIP(address);
- break;
+ break;
}
return MOD_RES_PASSTHRU;
}
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index 3b00d3347..d9b2eb789 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -210,24 +210,24 @@ class ModuleCloaking : public Module
{
// The position at which we found the last dot.
std::string::const_reverse_iterator dotpos;
-
+
// The number of dots we have seen so far.
unsigned int seendots = 0;
-
+
for (std::string::const_reverse_iterator iter = host.rbegin(); iter != host.rend(); ++iter)
{
if (*iter != '.')
continue;
-
+
// We have found a dot!
dotpos = iter;
seendots += 1;
-
+
// Do we have enough segments to stop?
if (seendots >= domainparts)
break;
}
-
+
// We only returns a domain part if more than one label is
// present. See above for a full explanation.
if (!seendots)
@@ -435,7 +435,7 @@ class ModuleCloaking : public Module
else if (stdalgo::string::equalsci(mode, "full"))
newcloaks.push_back(CloakInfo(MODE_OPAQUE, key, prefix, suffix));
else
- throw ModuleException(mode + " is an invalid value for <cloak:mode>; acceptable values are 'half' and 'full', at " + tag->getTagLocation());
+ throw ModuleException(mode + " is an invalid value for <cloak:mode>; acceptable values are 'half' and 'full', at " + tag->getTagLocation());
}
// The cloak configuration was valid so we can apply it.
diff --git a/src/modules/m_hostchange.cpp b/src/modules/m_hostchange.cpp
index 4c9b24140..be503ba6b 100644
--- a/src/modules/m_hostchange.cpp
+++ b/src/modules/m_hostchange.cpp
@@ -34,7 +34,7 @@ class HostRule
// Add the user's nickname to their hostname.
HCA_ADDNICK,
- // Set the user's hostname to the specific value.
+ // Set the user's hostname to the specific value.
HCA_SET
};
@@ -168,7 +168,7 @@ private:
}
else
{
- throw ModuleException(action + " is an invalid <hostchange:action> type, at " + tag->getTagLocation());
+ throw ModuleException(action + " is an invalid <hostchange:action> type, at " + tag->getTagLocation());
}
}
diff --git a/src/modules/m_ircv3_sts.cpp b/src/modules/m_ircv3_sts.cpp
index cbfdd1307..a8738b2ac 100644
--- a/src/modules/m_ircv3_sts.cpp
+++ b/src/modules/m_ircv3_sts.cpp
@@ -130,7 +130,7 @@ class ModuleIRCv3STS : public Module
for (std::vector<ListenSocket*>::const_iterator iter = ServerInstance->ports.begin(); iter != ServerInstance->ports.end(); ++iter)
{
ListenSocket* ls = *iter;
-
+
// Is this listener on the right port?
unsigned int saport = ls->bind_sa.port();
if (saport != port)
diff --git a/src/modules/m_showwhois.cpp b/src/modules/m_showwhois.cpp
index d01e1a83b..70c149273 100644
--- a/src/modules/m_showwhois.cpp
+++ b/src/modules/m_showwhois.cpp
@@ -51,7 +51,7 @@ class WhoisNoticeCmd : public Command
void HandleFast(User* dest, User* src)
{
dest->WriteNotice("*** " + src->nick + " (" + src->ident + "@" +
- src->GetHost(dest->HasPrivPermission("users/auspex")) +
+ src->GetHost(dest->HasPrivPermission("users/auspex")) +
") did a /whois on you");
}
diff --git a/src/modules/m_spanningtree/uid.cpp b/src/modules/m_spanningtree/uid.cpp
index 01af56fa6..0729065fc 100644
--- a/src/modules/m_spanningtree/uid.cpp
+++ b/src/modules/m_spanningtree/uid.cpp
@@ -134,7 +134,7 @@ CmdResult CommandUID::HandleServer(TreeServer* remoteserver, CommandBase::Params
}
CmdResult CommandFHost::HandleRemote(RemoteUser* src, Params& params)
-{
+{
src->ChangeDisplayedHost(params[0]);
return CMD_SUCCESS;
}