From 2b10cc84eab6cb9253611a090eb3ef67a6d3d0a7 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 26 Nov 2010 10:15:48 -0600 Subject: Added /bs set msg --- include/commands.h | 5 ++++- include/language.h | 7 +++++++ include/services.h | 6 ++++++ 3 files changed, 17 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/commands.h b/include/commands.h index e247fc388..9f4c5a928 100644 --- a/include/commands.h +++ b/include/commands.h @@ -57,9 +57,12 @@ struct CommandSource /* Whether or not this was a fantasy command */ bool fantasy; + std::list reply; + + ~CommandSource(); + void Reply(LanguageString message, ...); void Reply(const char *message, ...); - void Reply(const Anope::string &message); }; /** Every services command is a class, inheriting from Command. diff --git a/include/language.h b/include/language.h index 0b183598b..0b880a2f5 100644 --- a/include/language.h +++ b/include/language.h @@ -781,6 +781,7 @@ enum LanguageString BOT_INFO_CHAN_KICK_UNDERLINES_BAN, BOT_INFO_CHAN_KICK_ITALICS, BOT_INFO_CHAN_KICK_ITALICS_BAN, + BOT_INFO_CHAN_MSG, BOT_INFO_ACTIVE, BOT_INFO_INACTIVE, BOT_INFO_CHAN_OPTIONS, @@ -815,6 +816,11 @@ enum LanguageString BOT_SET_SYMBIOSIS_SYNTAX, BOT_SET_SYMBIOSIS_ON, BOT_SET_SYMBIOSIS_OFF, + BOT_SET_MSG_SYNTAX, + BOT_SET_MSG_OFF, + BOT_SET_MSG_PRIVMSG, + BOT_SET_MSG_NOTICE, + BOT_SET_MSG_NOTICEOPS, BOT_KICK_SYNTAX, BOT_KICK_DISABLED, BOT_KICK_UNKNOWN, @@ -1496,6 +1502,7 @@ enum LanguageString BOT_HELP_SET_FANTASY, BOT_HELP_SET_GREET, BOT_HELP_SET_SYMBIOSIS, + BOT_HELP_SET_MSG, BOT_HELP_KICK, BOT_HELP_KICK_BOLDS, BOT_HELP_KICK_COLORS, diff --git a/include/services.h b/include/services.h index 61532b82d..16be4ebc7 100644 --- a/include/services.h +++ b/include/services.h @@ -698,6 +698,12 @@ enum BotServFlag BS_KICK_REPEAT, /* BotServ kicks for italics */ BS_KICK_ITALICS, + /* Send fantasy replies back to the channel via PRIVMSG */ + BS_MSG_PRIVMSG, + /* Send fantasy replies back to the channel via NOTICE */ + BS_MSG_NOTICE, + /* Send fantasy replies back to the channel via NOTICE to ops */ + BS_MSG_NOTICEOPS, BS_END }; -- cgit