X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fcommands.h;h=6690d16c0e4b73688fad984e65c5cce3efa0bbdb;hb=8ed28d1f98d4d4c653201f0c4273e74dd8a122e6;hp=4840424c92526312030618ea18504a52d369d7c1;hpb=16a9b0f58f232e5b754ea40975ed55db593fd383;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/commands.h b/include/commands.h index 4840424c9..6690d16c0 100644 --- a/include/commands.h +++ b/include/commands.h @@ -1,3 +1,19 @@ +/* +------------------------------------+ + * | Inspire Internet Relay Chat Daemon | + * +------------------------------------+ + * + * Inspire is copyright (C) 2002-2004 ChatSpike-Dev. + * E-mail: + * + * + * + * Written by Craig Edwards, Craig McLure, and others. + * This program is free but copyrighted software; see + * the file COPYING for details. + * + * --------------------------------------------------- + */ + #ifndef __COMMANDS_H #define __COMMANDS_H @@ -12,6 +28,9 @@ #include "users.h" #include "channels.h" + +/** These are the handlers for user commands + */ void handle_join(char **parameters, int pcnt, userrec *user); void handle_part(char **parameters, int pcnt, userrec *user); void handle_kick(char **parameters, int pcnt, userrec *user); @@ -54,6 +73,24 @@ void handle_links(char **parameters, int pcnt, userrec *user); void handle_map(char **parameters, int pcnt, userrec *user); void handle_oper(char **parameters, int pcnt, userrec *user); void handle_nick(char **parameters, int pcnt, userrec *user); +void handle_kline(char **parameters, int pcnt, userrec *user); +void handle_gline(char **parameters, int pcnt, userrec *user); +void handle_zline(char **parameters, int pcnt, userrec *user); +void handle_qline(char **parameters, int pcnt, userrec *user); +void handle_eline(char **parameters, int pcnt, userrec *user); +void handle_server(char **parameters, int pcnt, userrec *user); +void handle_loadmodule(char **parameters, int pcnt, userrec *user); +void handle_unloadmodule(char **parameters, int pcnt, userrec *user); +void handle_commands(char **parameters, int pcnt, userrec *user); + +/** Functions for u:lined servers + */ +bool is_uline(const char* server); + +/** Other useful functions + */ +long duration(const char* str); +void do_whois(userrec* user, userrec* dest,unsigned long signon, unsigned long idle, char* nick); #endif