Advertisement
Guest User

Untitled

a guest
Jan 29th, 2015
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #!/usr/bin/env perl -w
  2. use strict;
  3. use utf8;
  4.  
  5. sub quote_cb {
  6. my ($data, $mod, $mod_data, $msg) = @_;
  7.  
  8. if ($msg =~ /^>/) {
  9. $msg="\x03" . int(rand(15)) . $msg;
  10. }
  11.  
  12. return $msg;
  13. }
  14.  
  15. weechat::register("quote.pl", "dcat", "1.1", "beerware", "quote", "", "");
  16. weechat::hook_modifier("input_text_for_buffer", "quote_cb", "");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement