diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/InspIRCd.layout | 50 | ||||
-rw-r--r-- | src/inspircd.cpp | 2 | ||||
-rw-r--r-- | src/modules.cpp | 11 |
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; } |