diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2003-03-30 12:33:15 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2003-03-30 12:33:15 +0000 |
commit | f6aa94fa63ed449f2042b8e6dac7b0d4aa280788 (patch) | |
tree | 4f47c3791ee3a60473c2e53faa0e19d5149a78e5 /src/inspircd.cpp | |
parent | 44b62866f83dea028500d81274eaaba8e886e1c3 (diff) |
Added DOT files to documentation for class diagrams (pretteh!)
Added OnServerRaw Module-class method (low-level munge routine)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@170 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 5db3184b9..839ad82c8 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -192,12 +192,19 @@ void safedelete(chanrec *p) void chop(char* str) { - if (strlen(str) > 512) - { - str[510] = '\r'; - str[511] = '\n'; - str[512] = '\0'; - } + + string temp = str; + FOREACH_MOD OnServerRaw(temp,false); + const char* str2 = temp.c_str(); + sprintf(str,"%s",str2); + + + if (strlen(str) > 512) + { + str[510] = '\r'; + str[511] = '\n'; + str[512] = '\0'; + } } |