Next: , Up: irc Analyzer


7.20.1 irc records

The standard script defines a record for users and one for channels. This is the user record:

     type irc_user: record {
     	u_nick: string;			# nick name
     	u_real: string;			# real name
     	u_host: string;			# client host
     	u_channels: set[string];	# channels user is a member of
     	u_is_operator: bool;		# user is server operator
     	u_conn: connection;
     }

This record represents a user inside the IRC network. The corresponding fields are:

`u_nick'
The nick name of the user.
`u_real'
The real name of the user.
`u_host'
This is the client's host name.
`u_channels'
A list of channels the user has joined.
`u_isOp'
If the user got operator status in the IRC network this will be set to true.
`u_conn'
The TCP connection which this IRC connection is based on.

This is the channel record:

     type irc_channel: record {
     	c_name: string;		# channel name
     	c_users: set[string];	# users in channel
     	c_ops: set[string];	# channel operators
     	c_type: string;		# channel type
     	c_modes: string;	# channel modes
     }

This record represents a channel inside the IRC network. The corresponding fields are:

`c_name'
The name of the channel.
`c_users'
A list of nick names of users in this channel.
`c_ops'
A list of nick names of users with operator status in this channel.
`c_type'
The channel type.
`c_modes'
The channel modes.