Add a New Comment (Rich Markup)
Option "-server" added to command /join.
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 servername\n". " channel: channel to join\n". " key: key for channel\n", "", "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; }
Hello Sebastien, it would be fine to join a channel from every buffer i am in. Also a channel on a different server, like: /join servername.#channel merry christmas
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Only logged-in users can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Follow 5 latest changes.
Copyright © 2023 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.12