2004-05-16 14:58:40 +00:00
|
|
|
/* +------------------------------------+
|
|
|
|
* | Inspire Internet Relay Chat Daemon |
|
|
|
|
* +------------------------------------+
|
|
|
|
*
|
2006-01-15 15:59:11 +00:00
|
|
|
* InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
|
2004-05-16 14:58:40 +00:00
|
|
|
* E-mail:
|
|
|
|
* <brain@chatspike.net>
|
|
|
|
* <Craig@chatspike.net>
|
|
|
|
*
|
|
|
|
* Written by Craig Edwards, Craig McLure, and others.
|
|
|
|
* This program is free but copyrighted software; see
|
|
|
|
* the file COPYING for details.
|
|
|
|
*
|
|
|
|
* ---------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2004-04-19 10:55:42 +00:00
|
|
|
#ifndef __COMMANDS_H
|
|
|
|
#define __COMMANDS_H
|
|
|
|
|
|
|
|
// include the common header files
|
|
|
|
|
|
|
|
#include <typeinfo>
|
|
|
|
#include <iostream>
|
|
|
|
#include <string>
|
|
|
|
#include <deque>
|
|
|
|
#include <sstream>
|
|
|
|
#include <vector>
|
|
|
|
#include "users.h"
|
|
|
|
#include "channels.h"
|
|
|
|
|
2004-04-22 13:55:16 +00:00
|
|
|
bool is_uline(const char* server);
|
2005-04-13 12:41:46 +00:00
|
|
|
long duration(const char* str);
|
2006-03-10 12:02:29 +00:00
|
|
|
bool host_matches_everyone(const std::string &mask, userrec* user);
|
|
|
|
bool ip_matches_everyone(const std::string &ip, userrec* user);
|
|
|
|
bool nick_matches_everyone(const std::string &nick, userrec* user);
|
2005-12-16 18:10:38 +00:00
|
|
|
int operstrcmp(char* data,char* input);
|
2006-04-03 10:22:03 +00:00
|
|
|
void split_chlist(userrec* user, userrec* dest, const std::string &cl);
|
2005-12-16 18:10:38 +00:00
|
|
|
|
2005-12-16 19:24:26 +00:00
|
|
|
/* XXX Serious WTFness XXX
|
|
|
|
*
|
|
|
|
* Well, unless someone invents a wildcard or
|
|
|
|
* regexp #include, and makes it a standard,
|
|
|
|
* we're stuck with this way of including all
|
|
|
|
* the commands.
|
|
|
|
*/
|
|
|
|
|
2006-04-20 18:46:25 +00:00
|
|
|
#include "commands/cmd_admin.h"
|
|
|
|
#include "commands/cmd_away.h"
|
|
|
|
#include "commands/cmd_commands.h"
|
|
|
|
#include "commands/cmd_connect.h"
|
|
|
|
#include "commands/cmd_die.h"
|
|
|
|
#include "commands/cmd_eline.h"
|
|
|
|
#include "commands/cmd_gline.h"
|
|
|
|
#include "commands/cmd_info.h"
|
|
|
|
#include "commands/cmd_invite.h"
|
|
|
|
#include "commands/cmd_ison.h"
|
|
|
|
#include "commands/cmd_join.h"
|
|
|
|
#include "commands/cmd_kick.h"
|
|
|
|
#include "commands/cmd_kill.h"
|
|
|
|
#include "commands/cmd_kline.h"
|
|
|
|
#include "commands/cmd_links.h"
|
|
|
|
#include "commands/cmd_list.h"
|
|
|
|
#include "commands/cmd_loadmodule.h"
|
|
|
|
#include "commands/cmd_lusers.h"
|
|
|
|
#include "commands/cmd_map.h"
|
|
|
|
#include "commands/cmd_modules.h"
|
|
|
|
#include "commands/cmd_motd.h"
|
|
|
|
#include "commands/cmd_names.h"
|
|
|
|
#include "commands/cmd_nick.h"
|
|
|
|
#include "commands/cmd_notice.h"
|
|
|
|
#include "commands/cmd_oper.h"
|
|
|
|
#include "commands/cmd_part.h"
|
|
|
|
#include "commands/cmd_pass.h"
|
|
|
|
#include "commands/cmd_ping.h"
|
|
|
|
#include "commands/cmd_pong.h"
|
|
|
|
#include "commands/cmd_privmsg.h"
|
|
|
|
#include "commands/cmd_qline.h"
|
|
|
|
#include "commands/cmd_quit.h"
|
|
|
|
#include "commands/cmd_rehash.h"
|
|
|
|
#include "commands/cmd_restart.h"
|
|
|
|
#include "commands/cmd_rules.h"
|
|
|
|
#include "commands/cmd_server.h"
|
|
|
|
#include "commands/cmd_squit.h"
|
|
|
|
#include "commands/cmd_stats.h"
|
|
|
|
#include "commands/cmd_summon.h"
|
|
|
|
#include "commands/cmd_time.h"
|
|
|
|
#include "commands/cmd_topic.h"
|
|
|
|
#include "commands/cmd_trace.h"
|
|
|
|
#include "commands/cmd_unloadmodule.h"
|
|
|
|
#include "commands/cmd_user.h"
|
|
|
|
#include "commands/cmd_userhost.h"
|
|
|
|
#include "commands/cmd_users.h"
|
|
|
|
#include "commands/cmd_version.h"
|
|
|
|
#include "commands/cmd_wallops.h"
|
|
|
|
#include "commands/cmd_who.h"
|
|
|
|
#include "commands/cmd_whois.h"
|
|
|
|
#include "commands/cmd_whowas.h"
|
|
|
|
#include "commands/cmd_zline.h"
|
2005-12-16 18:10:38 +00:00
|
|
|
|
2005-12-09 14:48:14 +00:00
|
|
|
|
2004-04-19 10:55:42 +00:00
|
|
|
#endif
|