summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp19
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';
+ }
}