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: [email protected]
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/
_______________________________________________
Weechat-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/weechat-dev