From a8185fe0d335e983af2e9e54c8ca0024aa862a0d Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 27 Apr 2004 12:54:25 +0000 Subject: Added extra services support stuff, fixed chanserv not deopping users on joining channels they dont have access to git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@741 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/InspIRCd.dev | 12 +++++++++++- src/InspIRCd.layout | 37 ++++++++++++++++++++++--------------- src/inspircd.cpp | 9 ++++++++- 3 files changed, 41 insertions(+), 17 deletions(-) diff --git a/src/InspIRCd.dev b/src/InspIRCd.dev index ae24fa043..bdc8a2bc2 100644 --- a/src/InspIRCd.dev +++ b/src/InspIRCd.dev @@ -1,7 +1,7 @@ [Project] FileName=InspIRCd.dev Name=InspIRCd - The Inspire Internet Relay Chat Daemon -UnitCount=47 +UnitCount=48 Type=1 Ver=1 ObjFiles= @@ -515,3 +515,13 @@ Priority=1000 OverrideBuildCmd=0 BuildCmd= +[Unit48] +FileName=modules\m_services.cpp +CompileCpp=1 +Folder=Modules +Compile=1 +Link=1 +Priority=1000 +OverrideBuildCmd=0 +BuildCmd= + diff --git a/src/InspIRCd.layout b/src/InspIRCd.layout index 4b1a0143b..7e3c7834a 100644 --- a/src/InspIRCd.layout +++ b/src/InspIRCd.layout @@ -1,5 +1,5 @@ [Editors] -Focused=42 +Focused=-1 Order=2,4,6,3,7,25,5,24,39,42,43,-1,1,46,0 [Editor_0] @@ -13,9 +13,9 @@ LeftChar=1 [Editor_1] Open=1 Top=0 -CursorCol=22 -CursorRow=185 -TopLine=158 +CursorCol=26 +CursorRow=1457 +TopLine=1420 LeftChar=1 [Editor_2] @@ -83,7 +83,7 @@ TopLine=58 LeftChar=1 [Editor_10] -Open=0 +Open=1 Top=0 CursorCol=1 CursorRow=102 @@ -204,8 +204,8 @@ LeftChar=1 [Editor_25] Open=1 Top=0 -CursorCol=4 -CursorRow=39 +CursorCol=5 +CursorRow=38 TopLine=1 LeftChar=1 [Editor_26] @@ -223,14 +223,14 @@ CursorRow=67 TopLine=34 LeftChar=1 [Editor_28] -Open=0 +Open=1 Top=0 CursorCol=87 CursorRow=20 TopLine=5 LeftChar=1 [Editor_29] -Open=0 +Open=1 Top=0 CursorCol=70 CursorRow=21 @@ -244,7 +244,7 @@ CursorRow=34 TopLine=1 LeftChar=1 [Editor_31] -Open=0 +Open=1 Top=0 CursorCol=2 CursorRow=40 @@ -258,28 +258,28 @@ CursorRow=1 TopLine=1 LeftChar=1 [Editor_33] -Open=0 +Open=1 Top=0 CursorCol=23 CursorRow=36 TopLine=1 LeftChar=1 [Editor_34] -Open=0 +Open=1 Top=0 CursorCol=38 CursorRow=35 TopLine=8 LeftChar=1 [Editor_35] -Open=0 +Open=1 Top=0 CursorCol=1 CursorRow=29 TopLine=1 LeftChar=1 [Editor_36] -Open=0 +Open=1 Top=0 CursorCol=1 CursorRow=34 @@ -322,7 +322,7 @@ TopLine=1 LeftChar=1 [Editor_42] Open=1 -Top=1 +Top=0 CursorCol=15 CursorRow=432 TopLine=407 @@ -355,3 +355,10 @@ CursorCol=13 CursorRow=154 TopLine=128 LeftChar=1 +[Editor_47] +Open=1 +Top=1 +CursorCol=1 +CursorRow=52 +TopLine=4 +LeftChar=1 diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 3aa5ecaa8..864623299 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -1452,7 +1452,14 @@ chanrec* add_channel(userrec *user, const char* cn, const char* key, bool overri { // use the stamdard J token with no privilages. char buffer[MAXBUF]; - snprintf(buffer,MAXBUF,"J %s %s",user->nick,Ptr->name); + if (created == 2) + { + snprintf(buffer,MAXBUF,"J %s @%s",user->nick,Ptr->name); + } + else + { + snprintf(buffer,MAXBUF,"J %s %s",user->nick,Ptr->name); + } NetSendToAll(buffer); } -- cgit v1.2.3