[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Weechat-dev] [task #10837] join command should use internal servername,
From: |
Nils G |
Subject: |
[Weechat-dev] [task #10837] join command should use internal servername, too |
Date: |
Fri, 24 Dec 2010 14:08:48 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:2.0b8) Gecko/20100101 Firefox/4.0b8 |
Follow-up Comment #1, task #10837 (project weechat):
it is possible with a script. but i think its a feature for original
command:
my $SCRIPT = "global_join";
my $AUTHOR = "nils_2";
my $Version = "0.01";
my $LICENCE = "GPL3";
my $DESCRIPTION = "join a channel with servername";
use strict;
weechat::register( $SCRIPT, $AUTHOR, $Version, $LICENCE, $DESCRIPTION, "", ""
);
weechat::hook_command($SCRIPT, $DESCRIPTION,
"[servername] [channel] [key]",
"servername: internal servernamen".
" channel: channel to joinn".
" key: key for channeln",
"", "get_args", "");
sub get_args{
my ($getargs) = ($_[2]);
my ($servername,$channel,$key) = split(/ /,$getargs);
return weechat::WEECHAT_RC_OK if ( not defined $channel);
my $server_pointer = weechat::buffer_search( "irc", "server." . $servername
);
if ( $server_pointer ne "" ){
# server buffer exists?
weechat::command($server_pointer,"/join " . $channel) if ( $channel ne ""
and not defined $key );
weechat::command($server_pointer,"/join " . $channel . " " . $key) if (
defined $key and $channel ne "" and $key ne "");
}
return weechat::WEECHAT_RC_OK;
}
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/task/?10837>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/