[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: /list command
On Sun, Mar 24, 2002 at 06:21:10PM -0800, D. wrote:
> I'm using Debian Testing with [X]Chat 1.8.8 and the
> 2.4.17 kernel.
> Did I miss something along the way? I get the
> following error when I try and get a list in the
> server window Perl error: Undefined subroutine
> &main::cmd_list called.
> Any help that would show me the error of my way's
> would be appreciated.
You're using a script, which installs a /LIST handler, but
the sub which should be called is not there or in another
(perl-)package. If the script says something like
package XChat::ListCmd;
IRC::register("foo.pl", 0.1, "", "");
IRC::add_command_handler("LIST", "cmd_list");
xchat tries to call main::cmd_list and not XChat::ListCmd::cmd_list
as intended. To fix this, replace the "cmd_list" in the
add_command_handler() line with "XChat::ListCmd::cmd_list" <-- of course
with XChat::ListCmd substituted by the actual package name
hth,
Hanno
--
Need "online" [x]chat help? /j #xchat on IRCNet ;-)
--
XChat-discuss: mailing list for XChat users
Archive: http://mail.nl.linux.org/xchat-discuss/