Split user list from Channel into ChannelUserList
[clinton/bobotpp.git] / source / Commands.H
index fc3ebd1..1f5e4aa 100644 (file)
 #include "String.H"
 
 class Bot;
+class Channel;
+class Mask;
 class Message;
+class User;
 
 class Commands {
 public:
@@ -71,6 +74,28 @@ public:
   static Message Unlock(Bot *, String);
   static Message Who (Bot *, String);
   static Message Whois (Bot *, String);
+
+private:
+  class deop_wildcard : std::unary_function<User &, void>
+  {
+    Bot *bot;
+    Mask &mask;
+    const String channel;
+  public:
+    deop_wildcard (Bot*, Mask&, String&);
+    void operator ()(const User &);
+  };
+
+  class kick_wildcard : std::unary_function<User &, void>
+  {
+    Bot *bot;
+    Mask &mask;
+    const String channel;
+    const String reason;
+  public:
+    kick_wildcard (Bot*, Mask&, String&, String&);
+    void operator ()(const User &);
+  };
 };
 
 #endif