summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-07 16:18:03 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-07 16:18:03 +0000
commit17f7b056e90cac05cfeb3f655ce815957483d5b7 (patch)
tree0cafd868a7c8b782c57c31b502c27921224af635
parentaf90c155f468b78540aad3182e2e9909203fc68e (diff)
Stability fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@415 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/InspIRCd.layout50
-rw-r--r--src/inspircd.cpp2
-rw-r--r--src/modules.cpp11
3 files changed, 37 insertions, 26 deletions
diff --git a/src/InspIRCd.layout b/src/InspIRCd.layout
index 229be3357..a21245aa6 100644
--- a/src/InspIRCd.layout
+++ b/src/InspIRCd.layout
@@ -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
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 3b11f8d16..f0fda4d7c 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -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;
}
diff --git a/src/modules.cpp b/src/modules.cpp
index b2424639a..b938ebcca 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -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;
}