Guest User

Untitled

a guest
Jul 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. sub invite {
  2. my ($self, $cl, $msg) = @_;
  3.  
  4. my (undef, $from, $channel) = @{$msg->{params}};
  5. utf8::decode($_) for ($from, $channel);
  6.  
  7. $self->broadcast({
  8. type => "action",
  9. event => "announce",
  10. body => "$from has invited you to $channel",
  11. });
  12. }
Add Comment
Please, Sign In to add comment