datatype of $server->{tag} in $server->query_create()?

JARI MATILAINEN <[email protected]> Thu, 14 Jun 2007 04:18:29 +0000 (GMT)
Newsgroups gmane.network.irc.irssi.devel
Message-ID <[email protected]>
--0-1857637680-1181794709=:39332
Content-Type: text/plain; charset=ascii

Hi,

I don't know if this is a bug, something I don't understand or something I've missed but this is what I've got:

When running a script with the correct function call
$server->query_create($server->{tag},$nick,0); I get an error
Usage: Irssi::Irc::Server::query_create(server_tag, nick, automatic) at (eval 95535) line 175.

Changing the function call to
$server->query_create($nick,$server->{tag}); the call works with a new querywindow being created but
not connected to any network:
Irssi: Starting query in Irssi::Irc::Server=HASH(0x83189cc) with XS4-687
where Irssi::Irc::Server=HASH(0x83189cc) should be the string "EFNet",
as shown below.

print CLIENTCRAP "$server->{tag}, $nick"; shows
EFNet, XS4-687 
which is as it should be.


I'm at my wits end here and I hope somebody will be able to tell me where I'm going wrong.


I'm using:
irssi-0.8.11 with
ldd /usr/bin/irssi
        linux-gate.so.1 =>  (0xffffe000)
        libperl.so.1 => /usr/lib/libperl.so.1 (0xb7e5c000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7e49000)
        libnsl.so.1 => /lib/libnsl.so.1 (0xb7e34000)
        libm.so.6 => /lib/libm.so.6 (0xb7e0f000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7de0000)
        libutil.so.1 => /lib/libutil.so.1 (0xb7ddc000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb7dd9000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb7d46000)
        libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0xb7d15000)
        libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0xb7c10000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7c0b000)
        libncurses.so.5 => /lib/libncurses.so.5 (0xb7bca000)
        libc.so.6 => /lib/libc.so.6 (0xb7aac000)
        /lib/ld-linux.so.2 (0xb7f6e000)
and
perl -v
This is perl, v5.8.8 built for i686-linux



BR.
Jari, vague@efnet


--0-1857637680-1181794709=:39332
Content-Type: text/html; charset=ascii

<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi,<br><br>I don't know if this is a bug, something I don't understand or something I've missed but this is what I've got:<br><br>When running a script with the correct function call<br>$server-&gt;query_create($server-&gt;{tag},$nick,0); I get an error<br>Usage: Irssi::Irc::Server::query_create(server_tag, nick, automatic) at (eval 95535) line 175.<br><br>Changing the function call to<br>$server-&gt;query_create($nick,$server-&gt;{tag}); the call works with a new querywindow being created but<br>not connected to any network:<br>Irssi: Starting query in Irssi::Irc::Server=HASH(0x83189cc) with XS4-687<br>where Irssi::Irc::Server=HASH(0x83189cc) should be the string "EFNet",<br>as shown below.<br><br>print CLIENTCRAP "$server
 -&gt;{tag}, $nick"; shows<br>EFNet, XS4-687 <br>which is as it should be.<br><br><br>I'm
 at my wits end here and I hope somebody will be able to tell me where I'm going wrong.<br><br><br>I'm using:<br>irssi-0.8.11 with<br>ldd /usr/bin/irssi<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; linux-gate.so.1 =&gt;&nbsp; (0xffffe000)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libperl.so.1 =&gt; /usr/lib/libperl.so.1 (0xb7e5c000)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libpthread.so.0 =&gt; /lib/libpthread.so.0 (0xb7e49000)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libnsl.so.1 =&gt; /lib/libnsl.so.1 (0xb7e34000)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libm.so.6 =&gt; /lib/libm.so.6 (0xb7e0f000)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libcrypt.so.1 =&gt; /lib/libcrypt.so.1 (0xb7de0000)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libutil.so.1 =&gt; /lib/libutil.so.1 (0xb7ddc000)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libgmodule-2.0.so.0 =&gt; /usr/lib
 /libgmodule-2.0.so.0 (0xb7dd9000)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 libglib-2.0.so.0 =&gt; /usr/lib/libglib-2.0.so.0 (0xb7d46000)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libssl.so.0.9.7 =&gt; /usr/lib/libssl.so.0.9.7 (0xb7d15000)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libcrypto.so.0.9.7 =&gt; /usr/lib/libcrypto.so.0.9.7 (0xb7c10000)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libdl.so.2 =&gt; /lib/libdl.so.2 (0xb7c0b000)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libncurses.so.5 =&gt; /lib/libncurses.so.5 (0xb7bca000)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libc.so.6 =&gt; /lib/libc.so.6 (0xb7aac000)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib/ld-linux.so.2 (0xb7f6e000)<br>and<br>perl -v<br>This is perl, v5.8.8 built for i686-linux<br><br><br><br>BR.<br>Jari, vague@efnet<br></div></div></body></html>
--0-1857637680-1181794709=:39332--