diff options
author | Timo Sirainen <cras@irssi.org> | 2000-07-23 14:14:05 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-07-23 14:14:05 +0000 |
commit | b2a616b68fddebb3146adebae1218fe9f9d851c3 (patch) | |
tree | db1796ba61b6511f4bb744e044b45e572092ce35 /docs/perl.txt | |
parent | bd9e53a5d23979b9879e482213678f31d5c60314 (diff) | |
download | irssi-b2a616b68fddebb3146adebae1218fe9f9d851c3.zip |
updates
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@525 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'docs/perl.txt')
-rw-r--r-- | docs/perl.txt | 11 |
1 files changed, 6 insertions, 5 deletions
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. |