forked from PsychoticNinja/irssi
Irssi::Connect = SERVER_CONNECT_REC
Several fixes to make it work git-svn-id: http://svn.irssi.org/repos/irssi/trunk@161 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
7f4eac0dd4
commit
35c126ccb1
51
docs/PERL
51
docs/PERL
@ -182,22 +182,45 @@ Server::irc_send_cmd_split(cmd, arg, max_nicks)
|
|||||||
"KICK #channel nick3 :byebye" to server.
|
"KICK #channel nick3 :byebye" to server.
|
||||||
|
|
||||||
|
|
||||||
|
*** Server Connects
|
||||||
|
|
||||||
|
This is a record where we keep connection information. All Servers and
|
||||||
|
Reconnects records have pointer to one of these.
|
||||||
|
|
||||||
|
Connect::values()
|
||||||
|
Get some information about connect. This function returns a reference to
|
||||||
|
hash table. Hash table has keys:
|
||||||
|
"address" - Address where we connected (irc.blah.org)
|
||||||
|
"port" - Port where we connected
|
||||||
|
"password" - Password we used in connection.
|
||||||
|
|
||||||
|
"ircnet" - IRC network
|
||||||
|
"wanted_nick" - Nick which we would prefer to use
|
||||||
|
"alternate_nick" - Alternate nick which we would prefer to use
|
||||||
|
"username" - User name
|
||||||
|
"realname" - Real name
|
||||||
|
|
||||||
|
Connect server_create_conn(address, [port=6667, [password='', [nick='', [channels='']]]])
|
||||||
|
Create new server connection.
|
||||||
|
|
||||||
*** Server functions
|
*** Server functions
|
||||||
|
|
||||||
Server::values()
|
Server::values()
|
||||||
Get some information about server. This function returns a reference to
|
Get some information about server. This function returns a reference to
|
||||||
hash table. Hash table has keys:
|
hash table. Hash table has keys:
|
||||||
"address" - Address where we connected (irc.blah.org)
|
"address" - Address where we connected (irc.blah.org)
|
||||||
"real_address" - Who the server thinks it is (irc1.blah.org)
|
|
||||||
"port" - Port where we connected
|
"port" - Port where we connected
|
||||||
"tag" - Unique server tag.
|
|
||||||
"ircnet" - IRC network
|
|
||||||
"password" - Password we used in connection.
|
"password" - Password we used in connection.
|
||||||
|
|
||||||
"nick" - Current nick
|
"ircnet" - IRC network
|
||||||
"wanted_nick" - Nick which we would prefer to use
|
"wanted_nick" - Nick which we would prefer to use
|
||||||
|
"alternate_nick" - Alternate nick which we would prefer to use
|
||||||
"username" - User name
|
"username" - User name
|
||||||
"realname" - Real name
|
"realname" - Real name
|
||||||
|
|
||||||
|
"tag" - Unique server tag.
|
||||||
|
"real_address" - Who the server thinks it is (irc1.blah.org)
|
||||||
|
"nick" - Current nick
|
||||||
"usermode" - Current user mode
|
"usermode" - Current user mode
|
||||||
"usermode_away" - Are we marked as away? 1|0
|
"usermode_away" - Are we marked as away? 1|0
|
||||||
"away_reason" - Away reason
|
"away_reason" - Away reason
|
||||||
@ -208,8 +231,8 @@ Server::values()
|
|||||||
%server_info = %{Irssi::cur_server->values()};
|
%server_info = %{Irssi::cur_server->values()};
|
||||||
Irssi::print("Current server = ".$server_info{'address'});
|
Irssi::print("Current server = ".$server_info{'address'});
|
||||||
|
|
||||||
Server server_connect(address, [port=6667, [password='', [nick='', [channels='']]]])
|
Server Connect::connect()
|
||||||
Create new server connection.
|
Connect to server.
|
||||||
|
|
||||||
Server::disconnect()
|
Server::disconnect()
|
||||||
Disconnect from server.
|
Disconnect from server.
|
||||||
@ -454,14 +477,18 @@ Reconnect::values()
|
|||||||
Get some information about reconnect. This function returns a reference to
|
Get some information about reconnect. This function returns a reference to
|
||||||
hash table. Hash table has keys:
|
hash table. Hash table has keys:
|
||||||
"tag" - Unique numeric tag
|
"tag" - Unique numeric tag
|
||||||
"address" - Address where we're going to connect
|
|
||||||
"password" - Password we use in connection
|
|
||||||
"port" - Port where we're going to connect
|
|
||||||
"ircnet" - IRC network
|
|
||||||
"nick" - Nick we want to use
|
|
||||||
"channels" - Join to these channels once connected
|
|
||||||
"next_connect" - Unix time stamp when the next connection occurs
|
"next_connect" - Unix time stamp when the next connection occurs
|
||||||
|
|
||||||
|
"address" - Address where we connected (irc.blah.org)
|
||||||
|
"port" - Port where we connected
|
||||||
|
"password" - Password we used in connection.
|
||||||
|
|
||||||
|
"ircnet" - IRC network
|
||||||
|
"wanted_nick" - Nick which we would prefer to use
|
||||||
|
"alternate_nick" - Alternate nick which we would prefer to use
|
||||||
|
"username" - User name
|
||||||
|
"realname" - Real name
|
||||||
|
|
||||||
|
|
||||||
*** Netsplits
|
*** Netsplits
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ nicklist.c:
|
|||||||
"nick gone changed", CHANNEL_REC, NICK_REC
|
"nick gone changed", CHANNEL_REC, NICK_REC
|
||||||
"nick ircop changed", CHANNEL_REC, NICK_REC
|
"nick ircop changed", CHANNEL_REC, NICK_REC
|
||||||
"server nick changed", SERVER_REC
|
"server nick changed", SERVER_REC
|
||||||
"massjoin", CHANNEL_REC, GList of NICK_RECs
|
"massjoin", CHANNEL_REC, GSList of NICK_RECs
|
||||||
|
|
||||||
rawlog.c:
|
rawlog.c:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user