bugWeeChat - Bugs: bug #27440, bad argument handling when using...

 
 

bug #27440: bad argument handling when using several commands in a single alias

Submitted by:  Elián Hanisch <m4v>
Submitted on:  Mon 14 Sep 2009 12:39:56 AM UTC  
 
Category:  alias plugin Severity:  3 - Normal
Item Group:  command Status:  Fixed
Privacy:  Public Assigned to:  Sebastien Helleu <flashcode>
Originator Name:  Open/Closed:  Closed
Release:  0.3.0 IRC nick:  m4v

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 16 Sep 2009 04:02:35 PM UTC, comment #2:

Fixed (patch not used).

Sebastien Helleu <flashcode>
Project AdministratorIn charge of this item.
Wed 16 Sep 2009 02:12:19 PM UTC, comment #1:

patch summited, please review

(file #18720)

Elián Hanisch <m4v>
Mon 14 Sep 2009 12:39:56 AM UTC, original submission:

if I create this alias:

/alias test /say $*; /say hi

when I run "/test asd asd" I get the following output

asd asd
hi asd asd

the arguments for /test are passed to each cmd of the alias, the output I would spect is

asd asd
hi

other example, some of the aliases I tried to set in weechat, for manage chanserv.

/alias cs /msg chanserv
/alias csop /cs op $channel
/alias cskick /csop; /kick

If I use "/cskick troll" weechat instead of op me and kick troll, will op troll.

aliases like above are pretty common in channels with the policy to only use op when needed.

Elián Hanisch <m4v>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

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 m4v (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
    2010-01-23 flashcode Open/ClosedOpen => Closed
    2009-09-16 flashcode Item GroupNone => command
        StatusNone => Fixed
        Assigned toNone => flashcode
    2009-09-16 m4v Attached File- => Added 0001-fix-arguement-passing-when-there-are-several-command.patch, #18720

    Back to the top


    Powered by Savane 3.4