This is an oper managment script I made.
Basically it has a menu that you can ban, kill, etc.
Also, every time you connect it will automatically oper-up and identify you to nickserv.
To set your Oper info and ns pass type:
/SetOperInfo OperUser OperPass NsPass NetworkName
Hope you like it :)
###########################################
#Oper managment script by ComputerCoderGuy#
# http://www.computercoderblog.co.cc/ #
###########################################
menu * {
Oper Commands
.Parts/Joins
..Sapart:/sapart $1
..Sajoin:/sajoin $1
..Sacycle:/sacycle $1
.Bans/Kills
..Ban
...Spam:/zline $1 Please do not spam on $network
...Swearing:/zline $1 Please do not swear on $network
...Botnet:/zline $1 Botnetting is not allowed on $network
...Abuse:/zline $1 Please do not abuse your powers/network staff
...I feel like it:/zline $1 I feel like it
..Kill
...Swearing:/kill $1 Please do not swear on $network
...Spam:/kill $1 Spam is prohibited on $network
...Botnet:/kill $1 Botnetting is prohibited on $network
...Abuse:/kill $1 Please do not abuse your powers/network staff
...I feel like it:/kill $1 I feel like it
..Shun:/shun $nick
.OperServ
..Uptime:/msg OperServ uptime
..Reload:/msg OperServ reload
..Restart:/msg OperServ restart
..Shutdown:/msg OperServ shutdown
..Update:/msg OperServ update
..ChanList:/msg Operserv chanlist
..Userlist:/msg OperServ userlist
..Noop
...Set:/msg OperServ noop set $server
...Revoke:/msg OperServ noop revoke $server
.Suspend Channel:/msg ChanServ suspend $chan
.Oper Managment Script By ComputerCoderGuy - http://www.komputerz.tk/
}
alias sacycle {
/sapart $1 $chan
/sajoin $1 $chan
}
on *:connect: {
if (%oper- [ $+ [ $network ] ]) {
/oper %operuserandpass- [ $+ [ $network ] ]
/msg NickServ identify %nspass- [ $+ [ $network ] ]
}
else {
halt
}
}
alias SetOperInfo {
if ($1 && $2 && $3 && $4) {
if (. isin $1-) { echo -a Network name should not be in the format or irc.ircnetwork.com. It should be in the format of the network name, e.g. JangoIRC }
else {
%operuser- [ $+ [ $4 ] ] = $1
%operpass- [ $+ [ $4 ] ] = $2
%nspass- [ $+ [ $4 ] ] = $3
%numoperservers = $calc(%numoperservers + 1)
%operserver- [ $+ [ %numoperservers ] ] = $4
%oper- [ $+ [ $network ] ] = $me
%operuserandpass- [ $+ [ $4 ] ] = %operuser- [ $+ [ $4 ] ] %operpass- [ $+ [ $4 ] ]
echo -a Oper info for $4 set
else {
echo -a Please enter your oper info like this:
echo -a /SetOperInfo operuserhere operpasshere nspasshere networknamehere
echo -a NOTE: Network name should not be in format of irc.networkname.com, it should be in the the network name, e.g. JangoIRC
}
}
Just throwing it out there but, some networks use the operpasswd module, which if you oper up on the wrong network, they can see your oper login and password, which can be detrimental to you and your network if you have not configured your oper hostmask correctly, so I don't really recommend auto opering on networks. Also if you use the same password for everything they will then get website logings nick logins and much more. So always think about it carefully before you do it.
This:> if ($1 && $2 && $3 && $4) {
if (. isin $1-) { echo -a Network name should not be in the format or irc.ircnetwork.com. It should be in the format of the network name, e.g. JangoIRC }Can be shortened a bit to:
if ($1-4) && (. isin $1-) { echo -a Network name should not be in the format or irc.ircnetwork.com. It should be in the format of the network name, e.g. JangoIRC }
But I don't see why the check for $1 to $4 is needed. The else halt serves no purpose.