taskWeeChat - Tasks: task #10837, join command should use internal...

 
 

task #10837: join command should use internal servername, too

Submitter:  Nils G <nils_2>
Submitted:  Fri 24 Dec 2010 01:11:55 PM UTC
   
 
Category:  irc plugin Should Start On:  Thu 23 Dec 2010 11:00:00 PM UTC
Should be Finished on:  Thu 23 Dec 2010 11:00:00 PM UTC Priority:  * 5 - Normal
Status:  Done Privacy:  Public
Assigned to:  flashcode Percent Complete:  100%
Originator Name:  Open/Closed:  Closed
Planned Release:  0.3.4 IRC nick: 
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 27 Dec 2010 10:13:23 AM UTC, comment #2: 

Option "-server" added to command /join.

Sebastien Helleu <flashcode>
Group administrator
Fri 24 Dec 2010 02:08:48 PM UTC, comment #1: 

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;
}

Nils G <nils_2>
Group Member
Fri 24 Dec 2010 01:11:55 PM UTC, original submission:  

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

Nils G <nils_2>
Group Member

 

(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

 

Carbon-Copy List
  • -email is unavailable- added by flashcode (Posted a comment)
  • -email is unavailable- added by nils_2 (Submitted the item)
  •  

    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.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-01-16 flashcode Open/ClosedOpen Closed
    2010-12-27 flashcode StatusNone Done
        Percent Complete0% 100%
        Assigned toNone flashcode
        Planned ReleaseNone 0.3.4

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code