diff options
-rw-r--r-- | docs/manual.txt | 4 | ||||
-rw-r--r-- | docs/perl.txt | 11 |
2 files changed, 8 insertions, 7 deletions
diff --git a/docs/manual.txt b/docs/manual.txt index 839f1c64..8be536b3 100644 --- a/docs/manual.txt +++ b/docs/manual.txt @@ -428,8 +428,8 @@ [-cmdspeed <ms>] [-cmdmax <count>] [-port <port>] <address> [<port> [<password>]] - -auto: Automatically connect to server at startup (default) - -noauto: Don't connect to server at startup + -auto: Automatically connect to server at startup + -noauto: Don't connect to server at startup (default) -ircnet: Specify what IRC network this server belongs to -host: Specify what host name to use, if you have multiple -cmdspeed: Same as /SET cmd_queue_speed, see section 3.1 diff --git a/docs/perl.txt b/docs/perl.txt index 9f702354..dfe9d4e4 100644 --- a/docs/perl.txt +++ b/docs/perl.txt @@ -1,6 +1,8 @@ Running Perl scripts -------------------- +FIXME: part of this file is out of date.. + Place new scripts to ~/.irssi/scripts/, or /usr/lib/irssi/scripts/ directory and run then with /RUN script. Or you could also run the script from another place by specifying the whole path to it. Scripts @@ -92,15 +94,14 @@ Commands that don't have the Xxxx prefix are called as Irssi::command(); *** General -Channel cur_channel() - return current channel -Server cur_server() - return current server +Window active_win() - return current window +Server active_server() - return current server channels() - return list of all channels servers() - return list of all servers commands() - return list of all commands dccs() - return list of all dcc connections logs() - return list of all log files -plugins() - return list of all plugins print(str) Print `str' to current window as "Irssi notice". @@ -228,8 +229,8 @@ Server::values() "connection_lost" - Did we lose the connection (1) or was the connection meant to be disconnected (0) Example: - %server_info = %{Irssi::cur_server->values()}; - Irssi::print("Current server = ".$server_info{'address'}); + $server_info = Irssi::active_server->values(); + Irssi::print("Current server = ".$server_info->{'address'}); Server Connect::connect() Connect to server. |