summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2003-03-30 12:33:15 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2003-03-30 12:33:15 +0000
commitf6aa94fa63ed449f2042b8e6dac7b0d4aa280788 (patch)
tree4f47c3791ee3a60473c2e53faa0e19d5149a78e5 /src
parent44b62866f83dea028500d81274eaaba8e886e1c3 (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')
-rw-r--r--src/InspIRCd.layout74
-rw-r--r--src/inspircd.cpp19
-rw-r--r--src/modules.cpp1
3 files changed, 51 insertions, 43 deletions
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