]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands.cpp
Added COMMANDS command (yes, really)
[user/henk/code/inspircd.git] / src / commands.cpp
index 5011b7d618b784ae043247b18834d94453a3f0f5..2b96b0a8ffb9f3323899fbcd8ed781c7afb85f31 100644 (file)
@@ -187,6 +187,15 @@ void handle_part(char **parameters, int pcnt, userrec *user)
        }
 }
 
+void handle_commands(char **parameters, int pcnt, userrec *user)
+{
+       for (int i = 0; i < command_table.size(); i++)
+       {
+               WriteServ(user->fd,"902 %s :%s %s",user->nick,command_table[i].command,command_table[i].source);
+       }
+       WriteServ(user->fd,"903 %s :End of COMMANDS list");
+}
+
 void handle_kick(char **parameters, int pcnt, userrec *user)
 {
        chanrec* Ptr = FindChan(parameters[0]);