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/
_______________________________________________
Weechat-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/weechat-dev