diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-14 19:25:34 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-14 19:25:34 +0000 |
commit | 864a2d5fe486a07d382fec200793372f1c64bc82 (patch) | |
tree | 626186fcea9dce20cb772af3453f1ca099e7fe99 /src | |
parent | 5232506d5eade7ab98ff39ee98577b04b257bbb2 (diff) |
Crash fixes when linking
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@581 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/InspIRCd.layout | 36 | ||||
-rw-r--r-- | src/inspircd.cpp | 12 |
2 files changed, 27 insertions, 21 deletions
diff --git a/src/InspIRCd.layout b/src/InspIRCd.layout index e046c5074..5a314ad79 100644 --- a/src/InspIRCd.layout +++ b/src/InspIRCd.layout @@ -13,9 +13,9 @@ LeftChar=1 [Editor_1] Open=1 Top=1 -CursorCol=24 -CursorRow=7093 -TopLine=7056 +CursorCol=1 +CursorRow=6803 +TopLine=6785 LeftChar=1 [Editor_2] @@ -38,8 +38,8 @@ LeftChar=1 Open=1 Top=0 CursorCol=1 -CursorRow=262 -TopLine=219 +CursorRow=16 +TopLine=1 LeftChar=1 [Editor_5] @@ -109,13 +109,13 @@ LeftChar=1 [Editor_13] Open=1 Top=0 -CursorCol=39 -CursorRow=113 -TopLine=57 +CursorCol=17 +CursorRow=17 +TopLine=1 LeftChar=1 [Editor_14] -Open=0 +Open=1 Top=0 CursorCol=1 CursorRow=45 @@ -131,7 +131,7 @@ TopLine=50 LeftChar=1 [Editor_16] -Open=0 +Open=1 Top=0 CursorCol=6 CursorRow=32 @@ -139,7 +139,7 @@ TopLine=1 LeftChar=1 [Editor_17] -Open=0 +Open=1 Top=0 CursorCol=47 CursorRow=118 @@ -147,7 +147,7 @@ TopLine=64 LeftChar=1 [Editor_18] -Open=0 +Open=1 Top=0 CursorCol=69 CursorRow=31 @@ -163,10 +163,10 @@ TopLine=1 LeftChar=1 [Editor_20] -Open=0 +Open=1 Top=0 -CursorCol=69 -CursorRow=37 +CursorCol=32 +CursorRow=30 TopLine=1 LeftChar=1 @@ -197,9 +197,9 @@ LeftChar=1 [Editor_24] Open=1 Top=0 -CursorCol=62 -CursorRow=266 -TopLine=239 +CursorCol=52 +CursorRow=260 +TopLine=217 LeftChar=1 [Editor_25] Open=1 diff --git a/src/inspircd.cpp b/src/inspircd.cpp index e11456b48..267832127 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -6743,7 +6743,9 @@ void handle_link_packet(char* udp_msg, char* udp_host, serverrec *serv) return; } } - serv->SendPacket("E :Access is denied (no matching link block)",udp_host); + char buffer[MAXBUF]; + sprintf(buffer,"E :Access is denied (no matching link block)"); + serv->SendPacket(buffer,udp_host); WriteOpers("CONNECT from %s denied, no matching link block",servername); return; } @@ -6795,7 +6797,9 @@ void handle_link_packet(char* udp_msg, char* udp_host, serverrec *serv) { strcpy(servers[j]->description,serverdesc); DoSync(serv,udp_host); - serv->SendPacket("X 0",udp_host); + char buffer[MAXBUF]; + sprintf(buffer,"X 0"); + serv->SendPacket(buffer,udp_host); return; } } @@ -6807,7 +6811,9 @@ void handle_link_packet(char* udp_msg, char* udp_host, serverrec *serv) log(DEBUG,"Server names '%s' and '%s' don't match",Link_ServerName,servername); } } - serv->SendPacket("E :Access is denied (no matching link block)",udp_host); + char buffer[MAXBUF]; + sprintf(buffer,"E :Access is denied (no matching link block)"); + serv->SendPacket(buffer,udp_host); WriteOpers("CONNECT from %s denied, no matching link block",servername); return; } |