Classes | Public Member Functions | Private Member Functions | Private Attributes

c_global_keeper Class Reference

Stores super global variables (state of bot) for functions. More...

#include <irc.h>

Collaboration diagram for c_global_keeper:

List of all members.

Classes

class  c_session_keeper
 Keeps session ID valid and restores the old one. More...

Public Member Functions

 c_global_keeper ()
void add_banned (const string &channel, const string &mask)
 Adds ban mask to channel.
void add_channel (const string &name)
 Adds a new channel.
void add_except (const string &channel, const string &mask)
 Adds exception mask to channel.
void add_invite (const string &channel, const string &mask)
 Adds invite mask to channel.
void add_isupport (const string &feature1, const string &feature2)
 Sets feature mapping.
void add_reop (const string &channel, const string &mask)
 Adds reop mask to channel.
void add_user (const string &channel, const string &nick, const string &mode)
 Adds an user.
void add_user_ircop (const string &nick)
 Updates an user (after WHOIS), sets ircop flag to true.
void add_user_mode_prefix (char ch1, char ch2)
 Sets user mode mapping.
void add_user_whois1 (const string &nick, const string &ident, const string &host, const string &fullname)
 Updates an user (after WHOIS).
void add_user_whois2 (const string &nick, const string &channel, const string &mode)
 Updates an user (after WHOIS).
void add_user_whois3 (const string &nick, const vector< string > &lines)
 Updates an user (after WHOIS).
void add_user_whois4 (const string &nick, const string &in_logic_as)
 Updates an user (after DNS).
void change_ban (const string &channel, char prefix, const string &mask)
 Erases channel's ban mask, and inserts it again (safe insertion, to avoid duplicates).
void change_chan_key (const string &channel, char prefix, const string &key)
 Changes channel's key.
void change_chan_limit (const string &channel, char prefix, const string &limit)
 Changes channel's limit.
void change_chan_mode (const string &channel, char prefix, char mode)
 Changes channel's mode.
void change_except (const string &channel, char prefix, const string &mask)
 Erases channel's exception mask, and inserts it again (safe insertion, to avoid duplicates).
void change_invite (const string &channel, char prefix, const string &mask)
 Erases channel's invite mask, and inserts it again (safe insertion, to avoid duplicates).
void change_other_mode_mask (const string &channel, char prefix, char mode, const string &mask)
 Erases channel's other mode mask, and inserts it again (safe insertion, to avoid duplicates).
void change_reop (const string &channel, char prefix, const string &mask)
 Erases channel's reop mask, and inserts it again (safe insertion, to avoid duplicates).
void change_topic (const string &channel, const string &topic)
 Sets channel's topic.
void change_user_mode (const string &channel, const string &nick, char prefix, char mode)
 Changes user's mode on channel.
void nick_change (const string &old_nick, const string &new_nick)
 User has changed nicks.
void nick_left (const string &channel, const string &nick, bool me)
 User left the channel.
void rehashed ()
 After rehash.
void reset_channels ()
 Resets $_channels array.
void reset_isupport ()
 Resets $_isupport array.
void reset_user_mode_prefix ()
 Resets $_user_mode_prefix array.
void reset_users ()
 Resets $_users array.
void update_uptime ()
 Updates $_uptime.

Private Member Functions

void delete_chan (c_var_array *channels, const string &name)
 Deletes a channel.
c_var_arrayget_chan (const string &channel)
 Gets channel.

Private Attributes

c_var_arraychannels
 $_channels array
c_var_arrayisupport
 $_isupport array
my_time_t last_uptime_update
 Timestamp of last $_uptime update.
c_var_arrayuser_mode_prefix
 $_user_mode_prefix array
c_var_arrayusers
 $_users arrray

Detailed Description

Stores super global variables (state of bot) for functions.

Author:
VooDooMan
Version:
1
Date:
2005

Definition at line 221 of file irc.h.


The documentation for this class was generated from the following files:

Generated on Sat Aug 7 2010 15:30:42 for VooDoo cIRCle by doxygen 1.7.1

Get VooDoo cIRCle at SourceForge.net. Fast, secure and Free Open Source software downloads