[Editors]
-Focused=43
+Focused=-1
Order=2,4,6,3,7,25,5,24,39,42,43,1,46,0,49,-1
[Editor_0]
LeftChar=1
[Editor_10]
-Open=1
+Open=0
Top=0
CursorCol=9
CursorRow=88
LeftChar=1
[Editor_12]
-Open=1
+Open=0
Top=0
CursorCol=7
CursorRow=171
LeftChar=1
[Editor_17]
-Open=1
+Open=0
Top=0
CursorCol=44
CursorRow=78
LeftChar=1
[Editor_20]
-Open=1
+Open=0
Top=0
CursorCol=70
CursorRow=485
LeftChar=1
[Editor_22]
-Open=1
+Open=0
Top=0
CursorCol=1
CursorRow=16
TopLine=1
LeftChar=1
[Editor_32]
-Open=1
+Open=0
Top=0
CursorCol=28
CursorRow=120
TopLine=1
LeftChar=1
[Editor_35]
-Open=0
+Open=1
Top=0
CursorCol=1
CursorRow=16
-TopLine=1
+TopLine=12
LeftChar=1
[Editor_36]
Open=0
TopLine=1
LeftChar=1
[Editor_37]
-Open=0
+Open=1
Top=0
CursorCol=1
-CursorRow=16
-TopLine=1
+CursorRow=193
+TopLine=154
LeftChar=1
[Editor_38]
-Open=1
+Open=0
Top=0
CursorCol=1
CursorRow=16
TopLine=1
LeftChar=1
[Editor_41]
-Open=0
+Open=1
Top=0
CursorCol=1
-CursorRow=16
+CursorRow=31
TopLine=1
LeftChar=1
[Editor_42]
LeftChar=34
[Editor_43]
Open=1
-Top=1
+Top=0
CursorCol=1
CursorRow=233
TopLine=194
TopLine=1
LeftChar=1
[Editor_47]
-Open=1
+Open=0
Top=0
CursorCol=12
CursorRow=128
TopLine=74
LeftChar=1
[Editor_48]
-Open=1
+Open=0
Top=0
CursorCol=1
CursorRow=16
TopLine=1
LeftChar=1
[Editor_50]
-Open=1
+Open=0
Top=0
CursorCol=1
CursorRow=16
TopLine=25
LeftChar=1
[Editor_51]
-Open=1
+Open=0
Top=0
CursorCol=1
CursorRow=89
TopLine=1
LeftChar=1
[Editor_55]
-Open=1
+Open=0
Top=0
CursorCol=49
CursorRow=60
TopLine=1
LeftChar=1
[Editor_57]
-Open=1
+Open=0
Top=0
CursorCol=1
CursorRow=81
TopLine=44
LeftChar=1
[Editor_58]
-Open=1
+Open=0
Top=0
CursorCol=27
CursorRow=78
TopLine=1
LeftChar=1
[Editor_60]
-Open=1
+Open=0
Top=0
CursorCol=22
CursorRow=50
TopLine=12
LeftChar=1
[Editor_61]
-Open=1
+Open=0
Top=0
CursorCol=1
CursorRow=81
TopLine=68
LeftChar=1
[Editor_62]
-Open=1
+Open=0
Top=0
CursorCol=29
CursorRow=57
TopLine=57
LeftChar=1
+[Editor_63]
+Open=1
+Top=1
+CursorCol=1
+CursorRow=67
+TopLine=18
+LeftChar=1
--- /dev/null
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#include <stdio.h>
+#include <string>
+#include "users.h"
+#include "channels.h"
+#include "modules.h"
+
+/* $ModDesc: Provides support for unreal-style umode +B */
+
+class ModuleBotMode : public Module
+{
+ Server *Srv;
+ public:
+ ModuleBotMode()
+ {
+ Srv = new Server;
+
+ if (!Srv->AddExtendedMode('B',MT_CLIENT,false,0,0))
+ {
+ Srv->Log(DEFAULT,"*** m_botmode: ERROR, failed to allocate user mode +B!");
+ printf("Could not claim usermode +B for this module!");
+ exit(0);
+ }
+ }
+
+ virtual ~ModuleBotMode()
+ {
+ delete Srv;
+ }
+
+ virtual Version GetVersion()
+ {
+ return Version(1,0,0,0);
+ }
+
+ virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list ¶ms)
+ {
+ if ((modechar == 'B') && (type == MT_CLIENT))
+ {
+ return 1;
+ }
+ else
+ {
+ return 0;
+ }
+ }
+
+ virtual void OnWhois(userrec* src, userrec* dst)
+ {
+ if (strchr(dst->modes,'B'))
+ {
+ Srv->SendTo(NULL,src,"335 "+std::string(src->nick)+" "+std::string(dst->nick)+" :is a \2bot\2 on "+Srv->GetNetworkName());
+ }
+ }
+
+};
+
+// stuff down here is the module-factory stuff. For basic modules you can ignore this.
+
+class ModuleBotModeFactory : public ModuleFactory
+{
+ public:
+ ModuleBotModeFactory()
+ {
+ }
+
+ ~ModuleBotModeFactory()
+ {
+ }
+
+ virtual Module * CreateModule()
+ {
+ return new ModuleBotMode;
+ }
+
+};
+
+
+extern "C" void * init_module( void )
+{
+ return new ModuleBotModeFactory;
+}
+