$server->values()->{'nick'} works fine without any

$sinfo = %{$server->values()}; $sinfo{'nick'} ugliness, fixed.

make install didn't work in plugins/perl


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@137 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-03-10 20:16:43 +00:00 committed by cras
parent ef264050c0
commit 73703bd87a
4 changed files with 13 additions and 29 deletions

View File

@ -151,8 +151,7 @@ timeout_remove(tag)
Command::values() Command::values()
Get some information about command. This function returns a reference to Get some information about command. This function returns a reference to
hash table (FIXME: can't it return the hash table itself?!). Hash table hash table. Hash table has keys:
has keys:
"cmd" - Command "cmd" - Command
"category" - Category "category" - Category
@ -176,8 +175,7 @@ Server::command_split(cmd, arg, max_nicks)
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 (FIXME: can't it return the hash table itself?!). Hash table hash table. Hash table has keys:
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) "real_address" - Who the server thinks it is (irc1.blah.org)
"port" - Port where we connected "port" - Port where we connected
@ -311,8 +309,7 @@ irc_get_mask(nick, host, flags)
Channel::values() Channel::values()
Get some information about channel. This function returns a reference to Get some information about channel. This function returns a reference to
hash table (FIXME: can't it return the hash table itself?!). Hash table hash table. Hash table has keys:
has keys:
"name" - channel name "name" - channel name
"type" - channel type ("channel", "query", "dcc chat", "empty") "type" - channel type ("channel", "query", "dcc chat", "empty")
"password" - channel password "password" - channel password
@ -351,8 +348,7 @@ Channel channel_find_level(level)
Ban::values() Ban::values()
Get some information about ban. This function returns a reference to Get some information about ban. This function returns a reference to
hash table (FIXME: can't it return the hash table itself?!). Hash table hash table. Hash table has keys:
has keys:
"ban" - The ban "ban" - The ban
"setby" - Nick of who set the ban "setby" - Nick of who set the ban
"time" - Timestamp when ban was set "time" - Timestamp when ban was set
@ -390,8 +386,7 @@ Channel::modes_set(data, mode)
Nick::values() Nick::values()
Get some information about nick. This function returns a reference to Get some information about nick. This function returns a reference to
hash table (FIXME: can't it return the hash table itself?!). Hash table hash table. Hash table has keys:
has keys:
"nick" - Plain nick "nick" - Plain nick
"host" - Host (blah@there.org) "host" - Host (blah@there.org)
"name" - Real name "name" - Real name
@ -434,8 +429,7 @@ Dcc dcc_find_by_port(nick, port)
Netsplit::values() Netsplit::values()
Get some information about netsplit. This function returns a reference to Get some information about netsplit. This function returns a reference to
hash table (FIXME: can't it return the hash table itself?!). Hash table hash table. Hash table has keys:
has keys:
"nick" - Nick "nick" - Nick
"address" - Nick's host "address" - Nick's host
"server" - The server nick was in "server" - The server nick was in
@ -480,8 +474,7 @@ Server::rawlog_redirect(str)
Autoignore::values() Autoignore::values()
Get some information about autoignore. This function returns a reference to Get some information about autoignore. This function returns a reference to
hash table (FIXME: can't it return the hash table itself?!). Hash table hash table. Hash table has keys:
has keys:
"nick" - Ignored nick "nick" - Ignored nick
"timeleft" - Seconds left to ignore "timeleft" - Seconds left to ignore
"level" - Ignoring level number "level" - Ignoring level number
@ -506,8 +499,7 @@ Server::autoignore_remove(mask, level)
Log::values() Log::values()
Get some information about log. This function returns a reference to Get some information about log. This function returns a reference to
hash table (FIXME: can't it return the hash table itself?!). Hash table hash table. Hash table has keys:
has keys:
"fname" - Log file name "fname" - Log file name
"autoopen_log" - Automatically open log at startup "autoopen_log" - Automatically open log at startup
"last" - Timestamp when last write occured. "last" - Timestamp when last write occured.
@ -516,8 +508,7 @@ Log::values()
Logitem::values() Logitem::values()
Get some information about logitem. This function returns a reference to Get some information about logitem. This function returns a reference to
hash table (FIXME: can't it return the hash table itself?!). Hash table hash table. Hash table has keys:
has keys:
"name" - Log item name. "name" - Log item name.
"level" - Logging level number. "level" - Logging level number.
@ -550,8 +541,7 @@ Log::remove_item(log, name)
Plugin::values() Plugin::values()
Get some information about plugin. This function returns a reference to Get some information about plugin. This function returns a reference to
hash table (FIXME: can't it return the hash table itself?!). Hash table hash table. Hash table has keys:
has keys:
"name" - Plugin name "name" - Plugin name
"description" - Plugin description "description" - Plugin description

View File

@ -12,10 +12,7 @@ sub event_rejoin_kick {
# check if channel has password # check if channel has password
$chanrec = $server->channel_find($channel); $chanrec = $server->channel_find($channel);
if ($chanrec) { $password = $chanrec->values()->{'key'} if ($chanrec);
%cvals = %{$chanrec->values()};
$password = $cvals{'key'};
}
$server->send_raw("JOIN $channel $password"); $server->send_raw("JOIN $channel $password");
} }

View File

@ -8,9 +8,7 @@ sub event_privmsg {
return if (!Irssi::is_channel($target)); return if (!Irssi::is_channel($target));
%sinfo = %{$server->values()}; $mynick = $server->values()->{'nick'};
$mynick = $sinfo{'nick'};
return if ($text !~ /\b$mynick\b/); return if ($text !~ /\b$mynick\b/);
$server->command("/notice $mynick In channel $target, $nick!$address said: $text"); $server->command("/notice $mynick In channel $target, $nick!$address said: $text");

View File

@ -24,8 +24,7 @@ sub cmd_quit {
@servers = Irssi::servers; @servers = Irssi::servers;
foreach $server (@servers) { foreach $server (@servers) {
%svals = %{$server->values()}; $server->command("/disconnect ".$server->values()->{'tag'}." $quitmsg");
$server->command("/disconnect ".$svals{'tag'}." $quitmsg");
} }
} }