Add config dir to default load path
[clinton/bobotpp.git] / source / ScriptCommands.H
index 2c7995b..2c725e6 100644 (file)
@@ -14,7 +14,8 @@
 
 // You should have received a copy of the GNU General Public License
 // along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+// 02110-1301, USA.
 
 #ifndef SCRIPTCOMMANDS_H
 #define SCRIPTCOMMANDS_H
 #ifdef USESCRIPTS
 
 #include <libguile.h>
-#include "Commands.H"
+
+#include <functional>
+
+class User;
 
 class ScriptCommands {
 public:
@@ -35,7 +39,10 @@ public:
   static SCM AddServer(SCM, SCM);
   static SCM AddShit(SCM, SCM, SCM, SCM, SCM);
   static SCM Ban(SCM, SCM);
-  static SCM ChangeLevel(SCM, SCM, SCM);
+  static SCM ChangeCommandLevel(SCM, SCM);
+  static SCM ChannelUsers (SCM);
+  static SCM CTCP(SCM, SCM, SCM);
+  static SCM CTCPReply(SCM, SCM, SCM);
   static SCM Cycle(SCM);
   static SCM Deban(SCM, SCM);
   static SCM DelServer(SCM);
@@ -55,6 +62,7 @@ public:
   static SCM Msg(SCM, SCM);
   static SCM NextServer(void);
   static SCM Nick(SCM);
+  static SCM Notice (SCM, SCM);
   static SCM Op(SCM, SCM);
   static SCM Part(SCM);
   static SCM Reconnect(void);
@@ -66,6 +74,8 @@ public:
   static SCM TKBan(SCM, SCM, SCM, SCM);
   static SCM Topic(SCM, SCM);
   static SCM Unlock(SCM);
+  static SCM Who(SCM);
+  static SCM Whois(SCM);
 
   static SCM getNickname(void);
   static SCM getServer(void);
@@ -82,17 +92,15 @@ public:
   // DCC CHAT
   static SCM sendDCCChatMessage (SCM, SCM);
 
-  // Message sending
-  static SCM sendCTCP(SCM, SCM, SCM);
   /*
-  SCM sendCTCPReply(SCM, SCM, SCM);
   SCM sendChannelMode(SCM);
   SCM sendChannelMode(SCM, SCM, SCM);
   SCM sendInvite(SCM, SCM);
   SCM sendJoin(SCM, SCM);
   SCM sendKick(SCM, SCM, SCM);
   SCM sendNick(SCM);
-  SCM sendNotice(SCM, SCM);
+  */
+  /*
   SCM sendPart(SCM);
   SCM sendPass(SCM);
   SCM sendPing(SCM);
@@ -106,6 +114,11 @@ public:
   SCM sendWho(SCM);
   SCM sendWhois(SCM);
   */
+private:
+  struct collect_channel_users : std::binary_function<SCM*, User, void>
+  {
+    void operator() (SCM*, User) const;
+  };
 };
 
 #endif