]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/modules.h
UMode tweaks
[user/henk/code/inspircd.git] / include / modules.h
index 56bf2d18f57b25b01882cb1a63280c1f5c5582f8..7bc4d3d4c3d534fd2c7dc72b240db4d5e3fb5532 100644 (file)
@@ -72,6 +72,7 @@ enum TargetTypeFlags {
 #include <deque>
 #include <sstream>
 #include <typeinfo>
+#include "timer.h"
 
 class Server;
 class ServerConfig;
@@ -1415,11 +1416,6 @@ class Server : public classbase
         */
        virtual std::string ChanMode(userrec* User, chanrec* Chan);
 
-       /** Checks if a user is on a channel.
-        * This function will return true or false to indicate if user 'User' is on channel 'Chan'.
-        */
-       virtual bool IsOnChannel(userrec* User, chanrec* Chan);
-
        /** Returns the server name of the server where the module is loaded.
         */
        virtual std::string GetServerName();
@@ -1596,8 +1592,9 @@ class Server : public classbase
         * in the array. If you do not pass enough parameters to meet the minimum needed by the handler, the
         * functiom will silently ignore it. The final parameter is the user executing the command handler,
         * used for privilage checks, etc.
+        * @return True if the command exists
         */
-       virtual void CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user);
+       virtual bool CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user);
 
        /** This function returns true if the commandname exists, pcnt is equal to or greater than the number
         * of paramters the command requires, the user specified is allowed to execute the command, AND
@@ -1747,6 +1744,8 @@ class Server : public classbase
        virtual long GetChannelCount();
 
        virtual chanrec* GetChannelIndex(long index);
+
+       void DumpText(userrec* User, std::string LinePrefix, stringstream &TextStream);
 };