weechat-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Weechat-dev] [bug #27697] python's weechat.command function doesn't see


From: anonymous
Subject: [Weechat-dev] [bug #27697] python's weechat.command function doesn't seem checking the "buffer" argument
Date: Wed, 14 Oct 2009 00:02:53 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090913 Shiretoko/3.5.3

URL:
  <http://savannah.nongnu.org/bugs/?27697>

                 Summary: python's weechat.command function doesn't seem
checking the "buffer" argument
                 Project: WeeChat
            Submitted by: None
            Submitted on: Wed 14 Oct 2009 12:02:52 AM UTC
                Category: script plugin
                Severity: 3 - Normal
              Item Group: command
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 0.3.0
                IRC nick: youshe

    _______________________________________________________

Details:

Here's a small code to test the behavior :

------
def handler_ping(data,buffer,date,tags,displayed,highlight,prefix,message):
        weechat.prnt(buffer,"pong")
        weechat.command(buffer,"/say pong")
        return weechat.WEECHAT_RC_OK

weechat.hook_print("","","ping",1,"handler_ping","")
------

I'm B in buffer 2. C in buffer 3 sends me "ping", I can see an answer pong in
buffer 2 from weechat.commant "/say pong" and an answer pong in buffer 3 from
weechat.prnt "pong".

This bug may appear in other script languages and in core API, but I haven't
tested it.




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?27697>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]