From f6aa94fa63ed449f2042b8e6dac7b0d4aa280788 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 30 Mar 2003 12:33:15 +0000 Subject: 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 --- src/inspircd.cpp | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'src/inspircd.cpp') 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'; + } } -- cgit v1.2.3