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

 
 

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

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

Add a New Comment Rich Markup
   

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

Fixed (patch not used).

Sebastien Helleu <flashcode>
Group administrator
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)
  •  

    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
    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.13-758e.
    Corresponding source code