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

 
 

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

Submitted by:  Nils G <nils_2>
Submitted on:  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
Percent Complete:  100% Assigned to:  Sebastien Helleu <flashcode>
Originator Name:  Open/Closed:  Closed
Planned Release:  0.3.4 IRC nick: 

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

Option "-server" added to command /join.

Sebastien Helleu <flashcode>
Project AdministratorIn charge of this item.
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>
Project 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>
Project 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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    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.3