summaryrefslogtreecommitdiff
path: root/src/modules/m_stripcolor.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-23 21:00:35 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-23 21:00:35 +0000
commit2e1f86fd0c9911210b79e6ac346672441eef18c4 (patch)
tree9151566c4c38be05335dbbe907d64bc3085c664b /src/modules/m_stripcolor.cpp
parent7240c926c8e9aeacf95c2bd4803c8879963cca3f (diff)
All of insp now builds with -pedantic (theres some warnings to squash in modules, and in spanningtree, but its all 'unused parameter').
I suggest we actually go through and satisfy these unused parameter errors for two reasons: (1) it acts as a strong compiler hint leading to better optimization (2) it will give us a good clue of what parameters are NEVER used and should therefore be removed from use (like i just did with AddMode) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8323 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_stripcolor.cpp')
-rw-r--r--src/modules/m_stripcolor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_stripcolor.cpp b/src/modules/m_stripcolor.cpp
index 8ed4bb49b..6e0100b46 100644
--- a/src/modules/m_stripcolor.cpp
+++ b/src/modules/m_stripcolor.cpp
@@ -92,7 +92,7 @@ class ModuleStripColor : public Module
usc = new UserStripColor(ServerInstance);
csc = new ChannelStripColor(ServerInstance);
- if (!ServerInstance->AddMode(usc, 'S') || !ServerInstance->AddMode(csc, 'S'))
+ if (!ServerInstance->AddMode(usc) || !ServerInstance->AddMode(csc))
throw ModuleException("Could not add new modes!");
}