Implements events for 'logic.txt'. More...
#include <string>
#include <vector>
#include <stack>
#include <list>
#include <map>
#include <algorithm>
#include "../params.h"
#include "../utils/memleak.h"
#include "../utils/my_assert.h"
#include "../compat.h"
#include "c_channel_def.h"
#include "c_user.h"
#include "c_channel.h"
#include "../modules.h"
#include "../irc.h"
#include "../logic.h"
#include "logic_internal.h"
#include "../dcc.h"
#include "../var/c_var_string.h"
#include "../mod/c_module.h"
#include "../log.h"
#include "../misc/shutdown.h"
#include "event_dispatch.h"
#include "../internal_state.h"
#include "../irc/c_online_channel.h"
#include "../utils/precomp.h"
Go to the source code of this file.
Functions | |
void | logic_ctcp (string user, string nick, string channel, string msg) |
Handles CTCP messages. | |
void | logic_filesys_got_new (const string &user_name, const string &nick, const string &ident, const string &host, const string &internal_name) |
Executes on_filesys_got_new event. | |
void | logic_fnc (const string &old_nick, const string &new_nick) |
Executes on_fnc event. | |
void | logic_on_banned (const string &channel, const string &ban_mask, const vector< string > &excepts, const vector< string > &invites, const vector< string > &bans) |
Executes on_banned event (called when bot JOINs the channel and finds out that some user is banned by ban mask) also checks whether user is not +e excepted or +I invited, which overrides the ban mask. | |
void | logic_on_broadcast (string username, const string &nick, const string &ident, const string &host, const string &bcast_mask, const int type, string msg, const string &server, const unsigned short port) |
Raises on_broadcast event. | |
void | logic_on_flood (const string &channel, const string &user, const string &nick, const int type, const int stat_num, const my_time_t stat_sec, const my_time_t stat_sec_of, const vector< string > &flist) |
Executes on_flood event procedure. | |
void | logic_on_internal_event (string type, string flags1, string flags2, string flags3, string flags4, const int severity_numeric, string msg1, string msg2) |
Raises on_intenal_event event. | |
void | logic_on_ircop (const string &channel, const string &nick, const bool on) |
Executes procedure for event on_ircop (when an IRC operator joins / is on after bot's join / left channel). | |
void | logic_on_join (const string &nick, const string &ident, const string &host, const string &fullname, const string &channel, const bool irc_op) |
Executes on_join event (called when someone JOINs the channel). | |
void | logic_on_nick_change (const string &nick, const string &ident, const string &host, const string &fullname, const string &channel, const bool irc_op, const string &old_nick) |
Validates new nick. | |
void | logic_on_nick_validate (const string &nick, const string &ident, const string &host, const string &fullname, const string &channel, const bool irc_op, const bool passive, bool &mod_disp_join_called) |
Validates user after bot has joined / got +o (op) / rehashed. | |
void | logic_on_not_in_reop (const string &channel, const string &mask, const string &user_name) |
Executes on_not_in_reop event (called when bot JOINs the channel and finds out that some user is not in reop list by +R). | |
void | logic_on_not_invited (const string &channel, const string &mask, const string &user_name) |
Executes on_not_invited event (called when bot JOINs the channel and finds out that some user is not invited by +I). | |
void | logic_on_notice (const string &channel, string user, const string &nick, const string &msg) |
Executes on_notice event procedure. | |
void | logic_on_part (const string &channel, const string &nick, const string &msg, const int type) |
Executes on_part event procedure. | |
void | logic_on_privmsg (const string &channel, string user, const string &nick, string msg) |
Executes on_privmsg event procedure. | |
void | logic_on_privmsg_query (string user, const string &nick, string msg) |
Executes on_privmsg event procedure (for query only - not channel). | |
void | logic_on_server_msg (const string &channel, const string &source, const int type, const string &msg, const string &server, const unsigned short port) |
Raises on_server_msg event. | |
void | logic_user_mode_changing (const string &target_nick, const string &channel, char prefix, char action) |
If we are .upgrade'ing then notifies about mode change for new bot. | |
void | logic_validate (const string &channel, const string &source_user, const string &target_user, const string &source_nick, const string &target_nick, const char prefix, const char action) |
Validates MODE change and, if needed, executes on_XXX event. | |
void | logic_validate_by_mask (const string &channel, const string &source_user, const string &source_nick, const string &mask, const char prefix, const char action) |
Validates MODE change and, if needed, executes on_XXX event. | |
void | logic_validate_chan_key (const string &channel, const string &source_user, const string &source_nick, const char prefix, const string &key) |
Validates the key change (+/-k) for the channel and (if needed) calls event, and adds a key to the history. | |
void | logic_validate_chan_limit (const string &channel, const string &source_user, const string &source_nick, const char prefix, const string &limit) |
Validates the limit change (+/-l) for the channel and (if needed) calls event. | |
void | logic_validate_chan_mode (const string &channel, const string &source_user, const string &source_nick, const char prefix, const char mode) |
Validates the mode change of the channel and (if needed) calls events. | |
void | logic_validate_kick (const string &channel, const string &source_user, const string &target_user, const string &source_nick, const string &target_nick) |
Validates KICK and, if needed, executes on_kick event. | |
void | logic_validate_topic (const string &channel, const string &source_user, const string &source_nick, const string &topic) |
Validates the topic change and (if assigned) calls event. | |
Variables | |
deque< c_user > | r_terminators |
List of terminated users for real usage (not temporary / compilation!). | |
deque< c_user > | r_user_templates |
List of users templates for real usage (not temporary / compilation!). | |
deque< c_user > | r_users |
List of users for real usage (not temporary / compilation!). |
Implements events for 'logic.txt'.
Definition in file logic_events.cpp.