projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merged Irssi SVN (upcoming irssi 0.8.11).
[silc.git]
/
apps
/
irssi
/
scripts
/
autoop.pl
diff --git
a/apps/irssi/scripts/autoop.pl
b/apps/irssi/scripts/autoop.pl
index 413f5e171da0adca4742d97bd6323bc0799e7cea..f718299911e1f11d850f43e98aefc690d7a39899 100644
(file)
--- a/
apps/irssi/scripts/autoop.pl
+++ b/
apps/irssi/scripts/autoop.pl
@@
-1,7
+1,18
@@
# /AUTOOP <*|#channel> [<nickmasks>]
# /AUTOOP <*|#channel> [<nickmasks>]
+# use friends.pl if you need more features
use Irssi;
use strict;
use Irssi;
use strict;
+use vars qw($VERSION %IRSSI);
+
+$VERSION = "1.00";
+%IRSSI = (
+ authors => 'Timo Sirainen',
+ name => 'autoop',
+ description => 'Simple auto-op script',
+ license => 'Public Domain',
+ changed => 'Sun Mar 10 23:18 EET 2002'
+);
my (%opnicks, %temp_opped);
my (%opnicks, %temp_opped);
@@
-53,7
+64,7
@@
sub autoop {
if (!$temp_opped{$nick} &&
$server->masks_match($masks, $nick, $host)) {
if (!$temp_opped{$nick} &&
$server->masks_match($masks, $nick, $host)) {
- $channel->command("
/
op $nick");
+ $channel->command("op $nick");
$temp_opped{$nick} = 1;
}
}
$temp_opped{$nick} = 1;
}
}