summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-10 18:43:15 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-10 18:43:15 +0000
commite51a4b5c29deac855496d6658a3c4612a61ffbb7 (patch)
tree56fc8b6ff360388567bcb64aee8dfd179085edf4 /src/helperfuncs.cpp
parent6c9588419d3cfe01d04d3c870eaac712bb6745b8 (diff)
Move InsertMode into ModeParser
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4849 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 689b1c409..d048b75df 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -507,30 +507,6 @@ bool AllModulesReportReady(userrec* user)
return true;
}
-int InsertMode(std::string &output, const char* mode, unsigned short section)
-{
- unsigned short currsection = 1;
- unsigned int pos = output.find("CHANMODES=", 0) + 10; // +10 for the length of "CHANMODES="
-
- if(section > 4 || section == 0)
- {
- log(DEBUG, "InsertMode: CHANMODES doesn't have a section %dh :/", section);
- return 0;
- }
-
- for(; pos < output.size(); pos++)
- {
- if(section == currsection)
- break;
-
- if(output[pos] == ',')
- currsection++;
- }
-
- output.insert(pos, mode);
- return 1;
-}
-
bool IsValidChannelName(const char *chname)
{
char *c;