s_online_user Struct Reference

#include <shared.h>

Collaboration diagram for s_online_user:

Collaboration graph
[legend]
List of all members.

Detailed Description

Stores data about connected user of channel.

Author:
VooDooMan
Version:
1
Date:
2004

Definition at line 1079 of file shared.h.

Public Member Functions

 s_online_user ()

Public Attributes

vector< s_flood_historyctcp_flood_hist
 History for ctcp_flood detection.
string dcc_msg
 Used only in tmp_users variable / for irc_access_to_partyline() function.
string fullname
 If got_whois == true, there is full name of user.
bool got_mode
 Have we received mode of user? (+v and +o / '+' and '@' prefixes; and '~' on some irc networks).
bool got_whois
 Have we received WHOIS command reply yet for this user?
string host
 If got_whois == true, there is host of user.
string ident
 If got_whois == true, there is IDENT of user.
string in_logic_as
 Name of user as in logic.h::s_user structure.
bool irc_op
 If got_whois == true: Is this user an irc operator?
vector< s_flood_historyjoin_flood_hist
 History for join_flood detection.
bool just_joined
 true if user just joined the channel (for on_join after JOIN and WHOIS)
string just_joined_channel
 Name of channel that user just joined (for on_join after JOIN and WHOIS).
time_t last_whois
 Used only in tmp_users variable / for irc_access_to_partyline() function.
string mode
 If got_mode == true, there is prefix of mode (i.e. "+", "@", "@+").
vector< s_flood_historymode_flood_hist
 History for mode_flood detection.
vector< s_flood_historymsg_flood_hist
 History for msg_flood (PRIVMSG) detection.
string nick
 User's nick name.
vector< s_flood_historynick_flood_hist
 History for nick_flood detection.
vector< s_flood_historynotice_flood_hist
 History for notice_flood detection.
string old_mode
 Mode of previous WHOIS.
string old_nick
 Workaround to multiple call logic_on_nick_validate.
bool on_join_called
 Have we tried to call on_join event yet? If on_join isn't assigned, there can be true.
time_t quit_time
 Time of user's quit/part/kick-ed (for gone_users variable only).
vector< s_flood_historyrepeat_flood_hist
 History for repeat_flood detection.
bool whois_sent
 Have we sent WHOIS command for this user yet?


Constructor & Destructor Documentation

s_online_user::s_online_user  )  [inline]
 

Definition at line 1117 of file shared.h.

References ctcp_flood_hist, dcc_msg, fullname, got_mode, got_whois, host, ident, in_logic_as, irc_op, join_flood_hist, just_joined, just_joined_channel, last_whois, mode, mode_flood_hist, msg_flood_hist, nick, nick_flood_hist, notice_flood_hist, old_mode, old_nick, on_join_called, quit_time, repeat_flood_hist, and whois_sent.

01118     {
01119         nick="";
01120         old_nick="";
01121         got_whois=false;
01122         whois_sent=false;
01123         on_join_called=false;
01124         ident="";
01125         host="";
01126         fullname="";
01127         got_mode=false;
01128         mode="";
01129         irc_op=true;
01130         in_logic_as="";
01131         last_whois=0;
01132         dcc_msg="";
01133         just_joined=false;
01134         just_joined_channel="";
01135         msg_flood_hist.clear();
01136         repeat_flood_hist.clear();
01137         notice_flood_hist.clear();
01138         nick_flood_hist.clear();
01139         join_flood_hist.clear();
01140         mode_flood_hist.clear();
01141         ctcp_flood_hist.clear();
01142         quit_time=0;
01143         old_mode="INVALID";
01144     }


Member Data Documentation

vector<s_flood_history> s_online_user::ctcp_flood_hist
 

History for ctcp_flood detection.

Definition at line 1112 of file shared.h.

Referenced by irc_check_flood(), and s_online_user().

string s_online_user::dcc_msg
 

Used only in tmp_users variable / for irc_access_to_partyline() function.

Definition at line 1100 of file shared.h.

Referenced by irc_access_to_partyline(), and s_online_user().

string s_online_user::fullname
 

If got_whois == true, there is full name of user.

Definition at line 1088 of file shared.h.

Referenced by irc_access_to_partyline(), irc_kicked(), irc_loop_process_input(), irc_mode_change_ban(), irc_mode_change_ban_exception(), irc_mode_change_chan_key(), irc_mode_change_chan_limit(), irc_mode_change_chan_status(), irc_mode_change_creator(), irc_mode_change_invitation(), irc_mode_change_op(), irc_mode_change_other(), irc_mode_change_reop(), irc_mode_change_voice(), irc_RPL_NAMREPLY(), irc_RPL_TOPIC(), and s_online_user().

bool s_online_user::got_mode
 

Have we received mode of user? (+v and +o / '+' and '@' prefixes; and '~' on some irc networks).

Definition at line 1090 of file shared.h.

Referenced by irc_access_to_partyline(), irc_loop_process_input(), irc_RPL_NAMREPLY(), and s_online_user().

bool s_online_user::got_whois
 

Have we received WHOIS command reply yet for this user?

Definition at line 1082 of file shared.h.

Referenced by irc_access_to_partyline(), irc_check_flood(), irc_loop_process_input(), irc_RPL_NAMREPLY(), and s_online_user().

string s_online_user::host
 

If got_whois == true, there is host of user.

Definition at line 1087 of file shared.h.

Referenced by irc_access_to_partyline(), irc_kicked(), irc_loop_process_input(), irc_mode_change_ban(), irc_mode_change_ban_exception(), irc_mode_change_chan_key(), irc_mode_change_chan_limit(), irc_mode_change_chan_status(), irc_mode_change_creator(), irc_mode_change_invitation(), irc_mode_change_op(), irc_mode_change_other(), irc_mode_change_reop(), irc_mode_change_voice(), irc_RPL_NAMREPLY(), irc_RPL_TOPIC(), and s_online_user().

string s_online_user::ident
 

If got_whois == true, there is IDENT of user.

Definition at line 1086 of file shared.h.

Referenced by irc_access_to_partyline(), irc_kicked(), irc_loop_process_input(), irc_mode_change_ban(), irc_mode_change_ban_exception(), irc_mode_change_chan_key(), irc_mode_change_chan_limit(), irc_mode_change_chan_status(), irc_mode_change_creator(), irc_mode_change_invitation(), irc_mode_change_op(), irc_mode_change_other(), irc_mode_change_reop(), irc_mode_change_voice(), irc_RPL_NAMREPLY(), irc_RPL_TOPIC(), and s_online_user().

string s_online_user::in_logic_as
 

Name of user as in logic.h::s_user structure.

Definition at line 1096 of file shared.h.

Referenced by irc_access_to_partyline(), irc_check_flood(), irc_loop_process_input(), irc_on_broadcast(), irc_on_notice(), irc_on_privmsg(), irc_user_mode_change(), and s_online_user().

bool s_online_user::irc_op
 

If got_whois == true: Is this user an irc operator?

Definition at line 1094 of file shared.h.

Referenced by irc_access_to_partyline(), irc_kicked(), irc_loop_process_input(), irc_mode_change_ban(), irc_mode_change_ban_exception(), irc_mode_change_chan_key(), irc_mode_change_chan_limit(), irc_mode_change_chan_status(), irc_mode_change_creator(), irc_mode_change_invitation(), irc_mode_change_op(), irc_mode_change_other(), irc_mode_change_reop(), irc_mode_change_voice(), irc_RPL_NAMREPLY(), irc_RPL_TOPIC(), and s_online_user().

vector<s_flood_history> s_online_user::join_flood_hist
 

History for join_flood detection.

Definition at line 1110 of file shared.h.

Referenced by irc_check_flood(), and s_online_user().

bool s_online_user::just_joined
 

true if user just joined the channel (for on_join after JOIN and WHOIS)

Definition at line 1103 of file shared.h.

Referenced by irc_access_to_partyline(), irc_loop_process_input(), irc_RPL_NAMREPLY(), and s_online_user().

string s_online_user::just_joined_channel
 

Name of channel that user just joined (for on_join after JOIN and WHOIS).

Definition at line 1104 of file shared.h.

Referenced by irc_loop_process_input(), and s_online_user().

time_t s_online_user::last_whois
 

Used only in tmp_users variable / for irc_access_to_partyline() function.

Definition at line 1099 of file shared.h.

Referenced by irc_access_to_partyline(), and s_online_user().

string s_online_user::mode
 

If got_mode == true, there is prefix of mode (i.e. "+", "@", "@+").

Definition at line 1091 of file shared.h.

Referenced by irc_access_to_partyline(), irc_loop_process_input(), irc_RPL_NAMREPLY(), and s_online_user().

vector<s_flood_history> s_online_user::mode_flood_hist
 

History for mode_flood detection.

Definition at line 1111 of file shared.h.

Referenced by irc_check_flood(), and s_online_user().

vector<s_flood_history> s_online_user::msg_flood_hist
 

History for msg_flood (PRIVMSG) detection.

Definition at line 1106 of file shared.h.

Referenced by irc_check_flood(), and s_online_user().

string s_online_user::nick
 

User's nick name.

Definition at line 1080 of file shared.h.

Referenced by irc_access_to_partyline(), irc_find_user(), irc_kicked(), irc_loop_process_input(), irc_mode_change_ban(), irc_mode_change_ban_exception(), irc_mode_change_chan_key(), irc_mode_change_chan_limit(), irc_mode_change_chan_status(), irc_mode_change_creator(), irc_mode_change_invitation(), irc_mode_change_op(), irc_mode_change_other(), irc_mode_change_reop(), irc_mode_change_voice(), irc_RPL_NAMREPLY(), irc_RPL_TOPIC(), and s_online_user().

vector<s_flood_history> s_online_user::nick_flood_hist
 

History for nick_flood detection.

Definition at line 1109 of file shared.h.

Referenced by irc_check_flood(), and s_online_user().

vector<s_flood_history> s_online_user::notice_flood_hist
 

History for notice_flood detection.

Definition at line 1108 of file shared.h.

Referenced by irc_check_flood(), and s_online_user().

string s_online_user::old_mode
 

Mode of previous WHOIS.

Definition at line 1092 of file shared.h.

Referenced by irc_access_to_partyline(), irc_loop_process_input(), irc_on_notice(), irc_on_privmsg(), irc_RPL_NAMREPLY(), and s_online_user().

string s_online_user::old_nick
 

Workaround to multiple call logic_on_nick_validate.

Definition at line 1115 of file shared.h.

Referenced by irc_loop_process_input(), and s_online_user().

bool s_online_user::on_join_called
 

Have we tried to call on_join event yet? If on_join isn't assigned, there can be true.

Definition at line 1084 of file shared.h.

Referenced by irc_access_to_partyline(), irc_loop_process_input(), irc_RPL_NAMREPLY(), and s_online_user().

time_t s_online_user::quit_time
 

Time of user's quit/part/kick-ed (for gone_users variable only).

Definition at line 1113 of file shared.h.

Referenced by irc_check_flood(), and s_online_user().

vector<s_flood_history> s_online_user::repeat_flood_hist
 

History for repeat_flood detection.

Definition at line 1107 of file shared.h.

Referenced by irc_check_flood(), and s_online_user().

bool s_online_user::whois_sent
 

Have we sent WHOIS command for this user yet?

Definition at line 1083 of file shared.h.

Referenced by irc_access_to_partyline(), irc_loop_process_input(), irc_RPL_NAMREPLY(), and s_online_user().


The documentation for this struct was generated from the following file:
Generated on Sun Jul 10 05:45:49 2005 for VooDoo cIRCle by doxygen 1.4.3

Hosted by SourceForge.net Logo