Guest User

Untitled

a guest
Dec 11th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #!/usr/bin/perl
  2. use strict;
  3. use vars qw($VERSION %IRSSI);
  4.  
  5. $VERSION = '0.1';
  6. %IRSSI = (
  7. authors => 'nyuszika7h',
  8. contact => 'nyuszika7h @ freenode',
  9. name => 'autoop',
  10. description => 'Auto-op on every joining nick',
  11. license => 'Creative Commons Attribution-NonCommercial-ShareAlike 3.0'
  12. );
  13.  
  14. sub event_message_join ($$$$) {
  15. my ($server, $channel, $nick, $address) = @_;
  16. if (lc($channel) eq lc('#linguistics')) {
  17. $server->command("mode #linguistics +o $nick");
  18. }
  19. }
  20.  
  21. Irssi::signal_add('message join', 'event_message_join');
Add Comment
Please, Sign In to add comment