[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Weechat-dev] [bug #31932] hook_modifier(weechat_print) does not discard
From: |
Nils G |
Subject: |
[Weechat-dev] [bug #31932] hook_modifier(weechat_print) does not discard each message if you return empty string |
Date: |
Sun, 19 Dec 2010 21:26:16 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13 |
URL:
<http://savannah.nongnu.org/bugs/?31932>
Summary: hook_modifier(weechat_print) does not discard each
message if you return empty string
Project: WeeChat
Submitted by: nils_2
Submitted on: So 19 Dez 2010 22:26:15 CET
Category: script API plugins
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
IRC nick: nils_2
_______________________________________________________
Details:
How to reproduce:
- load one of the scripts
- type for example: /help
- output:
22:11:54 | perl: registered script "test", Version 0.01 (do nothing...)
22:11:57 |
22:11:57 |
SCRIPT_NAME = "test"
SCRIPT_AUTHOR = "bla"
SCRIPT_VERSION = "0.0.1"
SCRIPT_LICENSE = "GPL3"
SCRIPT_DESC = "test me"
import weechat
def my_modifier_cb(data, modifier, modifier_data, string):
return ""
weechat.register(SCRIPT_NAME, SCRIPT_AUTHOR, SCRIPT_VERSION, SCRIPT_LICENSE,
SCRIPT_DESC, "", "")
weechat.hook_modifier("weechat_print", "my_modifier_cb", "")
my $SCRIPT = "test";
my $AUTHOR = "blafasel";
my $Version = "0.01";
my $LICENCE = "GPL3";
my $DESCRIPTION = "do nothing...";
use strict;
weechat::register( $SCRIPT, $AUTHOR, $Version, $LICENCE, $DESCRIPTION, "", ""
);
sub my_modifier_cb {
my (undef, $signal, undef, $data) = @_;
return "";
}
weechat::hook_modifier("weechat_print", "my_modifier_cb", "");
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?31932>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
- [Weechat-dev] [bug #31932] hook_modifier(weechat_print) does not discard each message if you return empty string,
Nils G <=