diff options
-rw-r--r-- | include/modules.h | 1 | ||||
-rw-r--r-- | src/InspIRCd.layout | 74 | ||||
-rw-r--r-- | src/inspircd.cpp | 19 | ||||
-rw-r--r-- | src/modules.cpp | 1 |
4 files changed, 52 insertions, 43 deletions
diff --git a/include/modules.h b/include/modules.h index 4f7921532..23affed7d 100644 --- a/include/modules.h +++ b/include/modules.h @@ -101,6 +101,7 @@ class Module : public classbase virtual void Module::OnPacketTransmit(char *p); virtual void Module::OnPacketReceive(char *p); virtual void OnRehash(); + virtual void Module::OnServerRaw(string &raw, bool inbound); }; diff --git a/src/InspIRCd.layout b/src/InspIRCd.layout index af5b80b5f..63fdda4df 100644 --- a/src/InspIRCd.layout +++ b/src/InspIRCd.layout @@ -1,9 +1,9 @@ [Editors] -Focused=7 -Order=1,7 +Focused=-1 +Order=1,7,3,2,0,6,5,4,-1 [Editor_0] -Open=0 +Open=1 Top=0 CursorCol=1 CursorRow=1 @@ -13,57 +13,57 @@ LeftChar=1 [Editor_1] Open=1 Top=0 -CursorCol=24 -CursorRow=322 -TopLine=1917 +CursorCol=21 +CursorRow=199 +TopLine=179 LeftChar=1 [Editor_2] -Open=0 +Open=1 Top=0 -CursorCol=1 -CursorRow=56 -TopLine=36 +CursorCol=33 +CursorRow=83 +TopLine=1 LeftChar=1 [Editor_3] -Open=0 +Open=1 Top=0 CursorCol=1 -CursorRow=3 -TopLine=1 +CursorRow=1 +TopLine=19 LeftChar=1 [Editor_4] -Open=0 +Open=1 Top=0 -CursorCol=5 -CursorRow=57 -TopLine=21 +CursorCol=51 +CursorRow=36 +TopLine=1 LeftChar=1 [Editor_5] -Open=0 +Open=1 Top=0 CursorCol=1 -CursorRow=40 +CursorRow=1 TopLine=1 LeftChar=1 [Editor_6] -Open=0 +Open=1 Top=0 CursorCol=1 -CursorRow=3 +CursorRow=1 TopLine=1 LeftChar=1 [Editor_7] Open=1 -Top=1 +Top=0 CursorCol=1 CursorRow=1 -TopLine=36 +TopLine=19 LeftChar=1 [Editor_8] @@ -71,13 +71,13 @@ Open=0 Top=0 CursorCol=1 CursorRow=1 -TopLine=35 +TopLine=38 LeftChar=1 [Editor_9] Open=0 Top=0 -CursorCol=17 +CursorCol=1 CursorRow=1 TopLine=1 LeftChar=1 @@ -85,9 +85,9 @@ LeftChar=1 [Editor_10] Open=0 Top=0 -CursorCol=12 -CursorRow=42 -TopLine=25 +CursorCol=1 +CursorRow=1 +TopLine=1 LeftChar=1 [Editor_11] @@ -109,9 +109,9 @@ LeftChar=1 [Editor_13] Open=0 Top=0 -CursorCol=1 -CursorRow=71 -TopLine=27 +CursorCol=12 +CursorRow=31 +TopLine=20 LeftChar=1 [Editor_14] @@ -163,11 +163,11 @@ TopLine=1 LeftChar=1 [Editor_20] -Open=0 -Top=0 -CursorCol=17 -CursorRow=125 -TopLine=113 +Open=1 +Top=1 +CursorCol=61 +CursorRow=104 +TopLine=71 LeftChar=1 [Editor_21] @@ -190,7 +190,7 @@ LeftChar=1 Open=0 Top=0 CursorCol=1 -CursorRow=3 +CursorRow=1 TopLine=1 LeftChar=1 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'; + } } diff --git a/src/modules.cpp b/src/modules.cpp index ad4e00c0a..bf13eb151 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -33,6 +33,7 @@ void Module::OnUserPart(userrec* user, chanrec* channel) { } void Module::OnPacketTransmit(char *p) { } void Module::OnPacketReceive(char *p) { } void Module::OnRehash() { } +void Module::OnServerRaw(string &raw, bool inbound) { } Version Module::GetVersion() { return Version(1,0,0,0); } // server is a wrapper class that provides methods to all of the C-style |