„pokerschmoker.pl“ hinzufügen
This commit is contained in:
parent
312e836b22
commit
bcdd5687de
25
pokerschmoker.pl
Normal file
25
pokerschmoker.pl
Normal file
@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env perl -w
|
||||
use strict;
|
||||
use utf8;
|
||||
|
||||
sub pokerschmoker_cb {
|
||||
my($data, $mod, $mod_data, $msg) = @_;
|
||||
|
||||
if($msg =~ /^pj/) {
|
||||
$msg = "poker join";
|
||||
}
|
||||
elsif($msg =~ /^pl/) {
|
||||
$msg = "poker leave";
|
||||
}
|
||||
elsif($msg =~ /^ca$/) {
|
||||
$msg = "call";
|
||||
}
|
||||
elsif($msg =~ /^c$/) {
|
||||
$msg = "check";
|
||||
}
|
||||
|
||||
return $msg;
|
||||
}
|
||||
|
||||
weechat::register("pokerschmoker.pl", "flummi", "1.0", "MIT", "pokerschmoker", "", "");
|
||||
weechat::hook_modifier("input_text_for_buffer", "pokerschmoker_cb", "");
|
Loading…
Reference in New Issue
Block a user