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->query_create($server->{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->query_create($nick,$server->{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
->{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> linux-gate.so.1 => (0xffffe000)<br> libperl.so.1 => /usr/lib/libperl.so.1 (0xb7e5c000)<br> libpthread.so.0 => /lib/libpthread.so.0 (0xb7e49000)<br> libnsl.so.1 => /lib/libnsl.so.1 (0xb7e34000)<br> libm.so.6 => /lib/libm.so.6 (0xb7e0f000)<br> libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7de0000)<br> libutil.so.1 => /lib/libutil.so.1 (0xb7ddc000)<br> libgmodule-2.0.so.0 => /usr/lib
/libgmodule-2.0.so.0 (0xb7dd9000)<br>
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb7d46000)<br> libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0xb7d15000)<br> libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0xb7c10000)<br> libdl.so.2 => /lib/libdl.so.2 (0xb7c0b000)<br> libncurses.so.5 => /lib/libncurses.so.5 (0xb7bca000)<br> libc.so.6 => /lib/libc.so.6 (0xb7aac000)<br> /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--