]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Stability fixes
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 7 Apr 2004 16:18:03 +0000 (16:18 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 7 Apr 2004 16:18:03 +0000 (16:18 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@415 e03df62e-2008-0410-955e-edbf42e46eb7

src/InspIRCd.layout
src/inspircd.cpp
src/modules.cpp

index 229be3357ab1257c34bfc106d13dd872323f3894..a21245aa68e24cc7936d589c8074ffb07bda2e04 100644 (file)
@@ -1,29 +1,29 @@
 [Editors]
-Focused=2
-Order=7,3,2,6,25,24,4,5,0,-1,1
+Focused=-1
+Order=7,3,2,6,25,24,4,5,-1,1,0
 
 [Editor_0]
 Open=1
 Top=0
-CursorCol=1
-CursorRow=1
-TopLine=1
+CursorCol=18
+CursorRow=48
+TopLine=35
 LeftChar=1
 
 [Editor_1]
 Open=1
 Top=0
-CursorCol=2
-CursorRow=4535
-TopLine=4481
+CursorCol=12
+CursorRow=4002
+TopLine=3971
 LeftChar=1
 
 [Editor_2]
 Open=1
-Top=1
-CursorCol=28
-CursorRow=246
-TopLine=219
+Top=0
+CursorCol=1
+CursorRow=275
+TopLine=95
 LeftChar=1
 
 [Editor_3]
@@ -37,9 +37,9 @@ LeftChar=1
 [Editor_4]
 Open=1
 Top=0
-CursorCol=29
-CursorRow=299
-TopLine=280
+CursorCol=1
+CursorRow=149
+TopLine=121
 LeftChar=1
 
 [Editor_5]
@@ -87,14 +87,14 @@ Open=1
 Top=0
 CursorCol=31
 CursorRow=75
-TopLine=1
+TopLine=7
 LeftChar=1
 
 [Editor_11]
-Open=1
+Open=0
 Top=0
 CursorCol=1
-CursorRow=1
+CursorRow=7
 TopLine=1
 LeftChar=1
 
@@ -165,9 +165,9 @@ LeftChar=1
 [Editor_20]
 Open=1
 Top=0
-CursorCol=26
-CursorRow=482
-TopLine=436
+CursorCol=5
+CursorRow=445
+TopLine=402
 LeftChar=1
 
 [Editor_21]
@@ -258,8 +258,8 @@ Open=0
 Top=0
 [Editor_34]
 Open=1
-Top=0
-CursorCol=2
-CursorRow=45
-TopLine=1
+Top=1
+CursorCol=1
+CursorRow=83
+TopLine=78
 LeftChar=1
index 3b11f8d1695ee8bf89d0f926f54ae9b2191b30c2..f0fda4d7c935b9b631ba7bfa79e5982cc3b0e058 100644 (file)
@@ -3645,7 +3645,7 @@ void handle_privmsg(char **parameters, int pcnt, userrec *user)
                        
                        int MOD_RESULT = 0;
 
-                       FOREACH_RESULT(OnUserPreMessage(user,chan,TYPE_USER,std::string(parameters[1])));
+                       FOREACH_RESULT(OnUserPreMessage(user,chan,TYPE_CHANNEL,std::string(parameters[1])));
                        if (MOD_RESULT) {
                                return;
                        }
index b2424639ad77235bb3860c4f97cf3d9871a84fae..b938ebcca1d89abdc47ea0d7f96527d86592af4a 100644 (file)
@@ -11,6 +11,7 @@
 #include "modules.h"
 #include "ctables.h"
 #include "inspircd_io.h"
+#include "wildcard.h"
 
 // class type for holding an extended mode character - internal to core
 
@@ -140,6 +141,14 @@ void Server::SendOpers(std::string s)
        WriteOpers("%s",s.c_str());
 }
 
+bool Server::MatchText(std::string sliteral, std::string spattern)
+{
+       char literal[MAXBUF],pattern[MAXBUF];
+       strncpy(literal,sliteral.c_str(),MAXBUF);
+       strncpy(pattern,spattern.c_str(),MAXBUF);
+       return match(literal,pattern);
+}
+
 void Server::SendToModeMask(std::string modes, int flags, std::string text)
 {
        WriteMode(modes.c_str(),flags,"%s",text.c_str());
@@ -302,6 +311,8 @@ ConfigReader::ConfigReader()
 
 ConfigReader::~ConfigReader()
 {
+       if (this->cache)
+               delete this->cache;
 }