o.o on *:load:{
if ($version >= 5.90) {
echo -a Successfully Loaded IRCop Script [Version 1.0]
echo -a To open, use Right-Click Pop-ups or type /ircop in any window.
}
if ($version < 5.8) {
echo -a Your mIRC is too old, IRCop only works with mIRC 5.9 or later.
unload -rs $script
}
}
menu channel,status,menubar {
-
IRCOP
.Run IRCop: /ircop
.Look for Updates: /run http://ircop.scriptmania.com
.Advertise: /msg $chan 2 $+ $me is using 5[2IRCop Addon Version 1.05]2 by Shynx. Download at http://ircop.scriptmania.com
-
}
; Aliases
alias IRCop { dialog -mo IRCoper IRCoper }
alias serverhasher { dialog -mo serverhash serverhash }
alias serverconnecter { dialog -mo serverconnect serverconnect }
alias serverakiller { dialog -mo serverakill serverakill }
alias serversquiter { dialog -mo serversquit serversquit }
; Main Menu System
dialog IRCoper {
title "IRCop Helper v1.1"
option dbu
size -1 -1 112 100
on *:dialog:IRCoper:sclick:*:{
if ($did == 2) { /echo 5[2INFO5]2: Disconnects user <nick> from the IRC server he/she is connected to with reason. | /kill $$?="Enter User" $$?="Enter Reason" }
if ($did == 3) { /echo 5[2INFO5]2: Adds a KLINE to the ircd.conf or klines.conf file which will ban the specified user from using that server. | /kline $$?="Enter Kline Time" $$?="Enter Nick/User Host" : $+ $$?="Enter Reason" }
if ($did == 4) { /echo 5[2INFO5]2: Will attempt to unkline the given <user@host> | /unkline $$?="Enter user@host" }
if ($did == 5) { /echo 5[2INFO5]2: Adds a ZLINE to the ircd.conf or klines.conf file which will deny any connections from the IP address of the banned client. | /zline $$?="Enter Nick/IP" $$?="Enter Reason" }
if ($did == 7) { /echo 5[2INFO5]2: Server sent wallops go to all users who are umode +w, oper or not. | /wallops $$?="Enter Message" }
if ($did == 8) { /echo 5[2INFO5]2: Sends an LOCOPS message of <message> to all opers on local server who are umode +g | /locops $$?="Enter Message" }
if ($did == 9) { /echo 5[2INFO5]2: Sends an GLOBOPS message of <message> to all opers on the network who are umode +g | /globops $$?="Enter Message" }
if ($did == 10) { /echo 5[2INFO5]2: Sends an CHATOPS message of <message> to all opers on the network who are umode +b | /chatops $$?="Enter Message" }
if ($did == 12) { /echo 5[2INFO5]2: Rehash's Server | /serverhasher }
if ($did == 13) { /echo 5[2INFO5]2: Connects Server(s) | /serverconnecter }
if ($did == 14) { /echo 5[2INFO5]2: Squits Server(s) | /serversquiter }
if ($did == 15) { /echo 5[2INFO5]2: Restarts the Server (Password May be Required). | /restart $?="Enter Password" }
if ($did == 17) { /echo 5[2INFO5]2: Allows IRCops to send messages to all users on the network. | /.msg OperServ GLOBAL $?="Enter Message" }
if ($did == 18) { /echo 5[2INFO5]2: Allows Services operators to set channel modes for any channel. | /.msg OperServ MODE $?="Enter Channel (e.g #Chat)" $$?="Enter Modes (e.g +tn)" }
if ($did == 19) { /echo 5[2INFO5]2: Allows IRCops to kick a user from any channel. | /.msg OperServ KICK $?="Enter Channel (e.g #Chat)" $$?="Enter User/Nick" $$?="Enter Reason" }
if ($did == 20) { /echo 5[2INFO5]2: Allows Services operators to manipulate the autokill (AKILL) list. If a user matching an AKILL mask attempts to connect, Services will issue a KILL for that user and, on supported server types, will instruct all servers to add a ban (K-line) for the mask which the user matched. | /serverakiller }
if ($did == 21) { /dialog -x IRCoper }
}
; Rehash Menu System
dialog serverhash {
title "Rehasher"
option dbu
size -1 -1 58 70
box "Description:",10,5 63 90 40
text "Server [A] is the server that tries to connect to Server [B]",11,6 69 99 20
text "Server [B] is the server you wanna connect to.",12,6 84 99 20
}
on *:dialog:serverconnect:sclick:*:{
if ($did == 8) { /echo 5[2INFO5]2: Trying to connect $did(serverconnect,5) with $did(serverconnect,3) using port: $did(serverconnect,7) | /connect $did(serverconnect,5) $did(serverconnect,7) $did(serverconnect,3) }
if ($did == 9) { /dialog -x serverconnect }
}
; AKILL Menu System
dialog serverakill {
title "IRCop SubMenu"
option dbu
size -1 -1 100 165
I would suggest setting it to know what level of IRCop is needed for each command. The server I am on I can do all of the above ( I am a Global Op / Services Admin ) yet some of the commands are not avaialble to local ops. Ex: Akill and Squit