- ; ========================================
- ; ========================================
- ;
- ; IrcOp Tools V 0.C.7
- ; Lines: 2231
- ; Coded By PuNkTuReD
- ; Last updated: 28/12/2010
- ;
- ; ========================================
- ; ========================================
- ; ========================================
- ; ========================================
- ; REQUIRES:
- ; Anope Modules:
- ; svsnick - URL (Should come with Anope)
- ; notinchan - URL (unsure if this is correct, my apolagies)
- ; http://modules.anope.org/index.php?page=view&id=18
- ;
- ; NOTES:
- ; Forbiden/No-Expire lists will only list the
- ; maximum /list amount which is defined in Anope.
- ; WallOps messages do not currently get logged.
- ; ========================================
- ; ========================================
- ; ========================================
- ; ========================================
- ; INCLUDES:
- ;
- ; /ircoptools (ALIAS)
- ; This alias will provide you with limited help and commands.
- ; Oper LogIn (DIALOG)
- ; This is a dialog which you can use to save and/or edit
- ; your oper login information.
- ; HostServ Interface (DIALOG)
- ; This is a dialog which you can use to activate/reject
- ; waiting vHosts, or delete existing ones.
- ; BotServ Interface (DIALOG)
- ; With this dialog you can create or delete Botserv bots,
- ; you can also assign or aunassign bots to channels.
- ; Spamfilter Interface (DIALOG)
- ; This is a dialog which will allow you to add items to your
- ; spamfilter. You may also delete the items you have added.
- ; NOTE: You may not delete spamfilter entry(s) which are in
- ; your unrealircd conf file with this dialog.
- ; Defcon Interface (DIALOG)
- ; This is a dialog which you can use to control Defcon settings.
- ; News Interface (DIALOG)
- ; This is a dialog which will allow you to view,del,add to operserv's
- ; logon, oper and random news lists.
- ; Global Interface (DIALOG)
- ; This is a dialog which will allow you to save Global Messages
- ; Which you send frequently, so that you will not have to type them
- ; over and over each time.
- ; IrcOp Chat Interface (DIALOG)
- ; This dialog will store Global, LocOps, ChatOps, AdminChat, NetAdmin.Chat messages.
- ; and reply accordingly.
- ; OperServ Access List (DIALOG)
- ; This is a dialog which will allow you to manipulate the operserv
- ; Admin and Oper lists.
- ; OperServ Exception (DIALOG)
- ; This will enable you to Add and Delete users from the OperServ
- ; Session Limit Exception list.
- ; OperServ Modules List (DIALOG)
- ; This is a dialog which will allow you to Load and UnLoad
- ; OperServ modules.
- ; Servers List (DIALOG)
- ; This is a dialog which will allow you to
- ; view/kill and restart connected servers.
- ; Forbidden List (DIALOG)
- ; This is a dialog which will allow you to easily add/del
- ; Channels and Nicks from their respective Forbidden list.
- ; Note: This will only list the amount you have set via Anope.
- ; NoExpire List (DIALOG)
- ; This is a dialog which will allow you to easily add/del
- ; Channels and Nicks from their respective NoExpire list.
- ; Lines list (DIALOG)
- ; This is a dialog which you can use to view existing:
- ; SGLINE SQLINE SZLINE AKILL GLINE KLINE GZLINE lists.
- ; Also Add or Del accordingly.
- ; List Users (DIALOG)
- ; Not In Chan List
- ; This dialog NEEDS the Anope module os_notinchanlist.
- ; It will list all users who are not in a channel,
- ; With the options to SaJoin/SaPart/Kill/Shun/G:Line.
- ; +B Users
- ; This is a dialog which will list all +B (BOT) Users on the network.
- ; With the options to SaJoin/SaPart/Kill/Shun/G:Line.
- ; Global Users
- ; This is a dialog which will list all Users on the network.
- ; With the options to SaJoin/SaPart/Kill/Shun/G:Line.
- ; Change User Data (DIALOG)
- ; This is a dialog which will allow you to change a users:
- ; Nick/Ident/Host/Name
- ; Server Admin Command (MENU)
- ; This menu has almost everything you will need for being an IrcOp.
- ; Services Commands (MENU)
- ; This menu is apart of the above menu and has all the
- ; commands for OperServ/ChanServ/NickServ/BotServ/HostServ.
- ; Services Commands Help (MENU)
- ; This menu will allow you to easily display a command
- ; syntax to a channel or user.
- ;
- ; ========================================
- ; ========================================
- ; ========================================
- ; ========================================
- ;
- ; NOTE:
- ; This was made for unreal and anope...
- ; I have not done work on this for over 6 months,
- ; so it may have some bugs with newer version than what
- ; this was tested on.
- ;
- ; Some features may need certain settings to be set,
- ; before they function correctly...
- ;
- ; Oh, I have also included a menu system which i did post here ages ago,
- ; which i made when i first started scripting,
- ; with help from the one and only PnPlus... lmao...
- ;
- ; Any comments/suggestions/bugs are welcome...
- ; but it should be noted that i may not be able to fix all
- ; bugs as i do not use mirc or admin any servers anymore...
- ;
- ; If ya rip, please leave some credits... thanks...
- ;
- ; THANKS:
- ; To cheiron for being my test guinea pig...
- ; would not have gotten this far without ya mate...
- ;
- ; Hammy for the radio wars...
- ; *Wheres that damn ham-sandwich*
- ;
- ; GrimReaper for the hyper monster filled nights...
- ; *MONSTERRRRR*
- ;
- ; ========================================
- ; ========================================
- ; ========================================
- ; ON LOAD
- ; ========================================
- on *:load: {
- write ircopchat.txt
- write tempvhost.txt
- }
- ; ========================================
- ; ON LOAD
- ; ========================================
- ; ========================================
- ; MENU SYSTEM
- ; ========================================
- IrcOpTools
- . Oper Login: dialog $iif($dialog(operlogin),-v,-dm operlogin) operlogin
- .-
- . Interfaces
- .. HostServ Interface: dialog $iif($dialog(hostserv),-v,-dm hostserv) hostserv
- .. BotServ Interface: dialog $iif($dialog(BotServ),-v,-dm botserv) botserv
- .. Spamfilter Interface: dialog $iif($dialog(spamfilter),-v,-dm spamfilter) spamfilter
- .. Defcon Interface: dialog $iif($dialog(defcon),-v,-dm defcon) defcon
- .. News Interface: dialog $iif($dialog(news),-v,-dm news) news
- .. Global Interface: dialog $iif($dialog(global),-v,-dm global) global
- .. IrcOp Chat Interface: dialog $iif($dialog(ircopchat),-v,-dm ircopchat) ircopchat
- . Lists
- . Others
- .. Change User Data: dialog $iif($dialog(chguserdata),-v,-dm chguserdata) chguserdata
- }
- ; ========================================
- ; END MENU SYSTEM
- ; ========================================
- ; ========================================
- ; IRCOPTOOLS ALIAS
- ; ========================================
- alias ircoptools {
- if ($1 == reset) {
- var %groups_effected = 0
- var %groups = #hostserv #botserv #spamfilter #defconcheck #news #osaccess #os_exception #modules #serversmap #forbid #lines #listglobal #listidle #listbots #chguser
- while (%groups_tot) {
- dec %groups_tot
- }
- unset %osviewing %kg_viewing %listuserview
- }
- if (!$2) {
- }
- elseif ($2 == reset) {
- echo -a * RESET - This command was added for debugging purposes, $&
- If you do happen to need this command please report it to the script creator with $&
- info about what group needed Disabling.
- }
- else {
- }
- }
- else {
- }
- }
- ; ========================================
- ; END IRCOPTOOLS ALIAS
- ; ========================================
- ; ========================================
- ; ON CONNECT
- ; ========================================
- on *:connect: {
- if ($readini(operlogin.ini,$network,autologin) == 1) {
- oper $readini(operlogin.ini,$network,username) $readini(operlogin.ini,$network,password)
- }
- }
- ; ========================================
- ; END ON CONNECT
- ; ========================================
- ; ========================================
- ; OPER LOGIN DIALOG
- ; ========================================
- dialog operlogin {
- title Oper Login
- size -1 -1 130 80
- option dbu
- box "", 1, 5 5 120 70
- text "Saved Networks", 2, 10 10 50 10
- combo 3, 10 20 50 10, drop, sort
- text "Network:", 4, 70 10 50 10
- edit "", 5, 70 20 50 10, autohs
- text "Username:", 6, 10 35 50 10
- edit "", 7, 10 45 50 10, autohs
- text "Password:", 8, 70 35 50 10
- edit "", 9, 70 45 50 10, autohs, pass
- check "AutoLogIn", 10, 10 60 50 10
- button "Save", 11, 70 60 50 10
- }
- on *:dialog:operlogin:*:*: {
- var %a = $dname, %b = $devent, %c = $did
- if (%b == init) { ol_loadnetworks }
- elseif (%b == sclick) {
- if (%c == 3) {
- did -ra %a 5 $did(3)
- did -ra %a 7 $readini(operlogin.ini,$did(3),username)
- did -ra %a 9 $readini(operlogin.ini,$did(3),password)
- if ($readini(operlogin.ini,$did(3),autologin) == 1) { did -c %a 10 }
- }
- elseif (%c == 11) {
- if ($did(5)) && ($did(7)) && ($did(9)) {
- did -r %a 3,7,9
- ol_loadnetworks
- }
- }
- }
- }
- alias ol_loadnetworks {
- var %ol_tot = $ini(operlogin.ini,0)
- while (%ol_tot) {
- did -a operlogin 3 $ini(operlogin.ini,%ol_tot)
- dec %ol_tot
- }
- }
- ; ========================================
- ; END OPER LOGIN DIALOG
- ; ========================================
- ; ========================================
- ; HOSTSERV INTERFACE DIALOG
- ; ========================================
- dialog hostserv {
- title HostServ Interface
- size -1 -1 200 125
- option dbu
- box "Listing 0 vHost Entry(s)", 1, 5 5 190 115
- list 2, 10 15 180 90, hsbar, vsbar, sort
- button "Activate", 3, 10 100 40 10
- button "Reject", 4, 55 100 40 10
- button "Delete", 5, 10 100 40 10
- menu "Listing Option", 6
- item "Waiting", 7, 6
- item "Approved", 8, 6
- item "Search", 9, 6
- text "Enter Nick", 10, 10 95 80 10
- edit "", 11, 10 105 80 10
- button "Set", 12, 55 100 40 10
- }
- on *:dialog:hostserv:*:*: {
- var %a = $dname, %b = $devent, %c = $did
- if (%b == init) { set %hs_tot 0 | did -h %a 3,4,5,10-12 }
- elseif (%b == menu) {
- if (%c == 7) { hostservmenu 5,10-12 3,4 waiting }
- elseif (%c == 9) { hostservmenu 3,4,5,12 10,11 }
- }
- elseif (%b == sclick) {
- if ($istok(3 4 5,%c,32)) {
- }
- elseif (%c == 12) {
- .msg hostserv set $$?"Nick" $$?"Host"
- did -a hostserv 1 Listing 0 vHost Entry(s)
- }
- }
- elseif (%b == edit) {
- if (%c == 11) { _get.host.match $did(11) }
- }
- }
- alias _get.host.match {
- did -r hostserv 2
- var %a = $1, %b = $lines(tempvhost.txt)
- while (%b) {
- dec %b
- }
- _fill.list
- }
- var %a = $lines(tempnicks.txt)
- while (%a) { did -a hostserv 2 $read(tempnicks.txt,%a) | dec %a }
- }
- alias hostservact {
- var %hostservact = $iif($$2 == Delete,del,$$2)
- did -a hostserv 1 Listing 0 vHost Entry(s)
- }
- alias hostservmenu {
- did -r hostserv 2 | did -a hostserv 1 Listing 0 vHost Entry(s)
- set %hs_tot 0 | did -h hostserv $$1 | did -v hostserv $$2
- if ($3) {
- .enable #hostserv
- .msg hostserv $$3
- }
- else {
- }
- }
- #hostserv off
- on ^*:notice:*:*: {
- if ($nick == HostServ) && ($dialog(hostserv)) {
- if (not found in the nickserv db. isin $1-) { .timer 1 2 hostserverror $1- }
- if (Displayed all records isin $1-) {
- if (%hs_tot == 0) { .timer 1 2 hostservnone }
- }
- elseif ($left($1,1) == $chr(35)) {
- inc %hs_tot | did -ra hostserv 1 Listing %hs_tot vHost Entry(s)
- did -z hostserv 2
- }
- haltdef
- }
- }
- #hostserv end
- ; ========================================
- ; END HOSTSERV INTERFACE DIALOG
- ; ========================================
- ; ========================================
- ; BOTSERV INTERFACE DIALOG
- ; ========================================
- dialog botserv {
- title BotServ Interface
- size -1 -1 290 135
- option dbu
- box "Listing 0 Entry(s)", 1, 5 5 90 125
- list 2, 10 15 80 90, hsbar, vsbar, sort
- box "", 3, 100 5 90 125
- text "Nick", 4, 105 15 50 10
- edit "", 5, 105 25 80 10, autohs
- text "User", 6, 105 35 50 10
- edit "", 7, 105 45 80 10, autohs
- text "Host", 8, 105 55 50 10
- edit "", 9, 105 65 80 10, autohs
- text "Real", 10, 105 75 50 10
- edit "", 11, 105 85 80 10, autohs
- button "Create", 12, 105 110 80 10
- button "Delete", 13, 10 110 80 10
- box "Listing 0 Entry(s)", 14, 195 5 90 125
- list 15, 200 15 80 90, hsbar, vsbar, sort
- button "Assign", 16, 200 110 40 10
- button "Unassign", 17, 240 110 40 10
- }
- on *:dialog:botserv:*:*: {
- var %a = $dname, %b = $devent, %c = $did
- if (%b == sclick) {
- if (%c == 12) {
- if (%bs_nick && %bs_user && %bs_host && %bs_real) {
- }
- }
- elseif (%c == 13) {
- if ($did(2).seltext) {
- }
- }
- elseif (%c == 16) {
- if ($did(15).seltext) && ($did(2).seltext) { .enable #botassign | .botserv $did(%c) $did(15).seltext $did(2).seltext }
- }
- elseif (%c == 17) {
- }
- }
- }
- #botserv off
- on ^*:notice:*:*: {
- if ($nick == BotServ) && ($dialog(botserv)) {
- elseif (may only contain isin $1-) { .timer 1 2 botserverror $1- }
- else { inc %bs_tot | did -ra botserv 1 Listing %bs_tot Entry(s) | did -a botserv 2 $1- | did -z botserv 2 }
- haltdef
- }
- }
- #botserv end
- #botchanlist off
- raw *:*: {
- if ($dialog(botserv)) {
- if ($numeric == 321) { }
- elseif ($numeric == 322) { inc %botchanlist_tot | did -a botserv 15 $2 | did -z botserv 15 }
- elseif ($numeric == 323) {
- did -ra botserv 14 Listing %botchanlist_tot Entry(s)
- }
- haltdef
- }
- }
- #botchanlist end
- #botassign off
- on ^*:notice:*:*: {
- if ($nick == BotServ) && ($dialog(botserv)) {
- if (may not be registered or used. isin $1-) { .timer 1 2 botserverror $strip($1-) | .disable #botassign }
- haltdef
- }
- }
- #botassign end
- ; ========================================
- ; END BOTSERV INTERFACE DIALOG
- ; ========================================
- ; ========================================
- ; SPAMFILTER INTERFACE DIALOG
- ; ========================================
- dialog spamfilterhelp {
- title Spamfilter Type Help
- size -1 -1 80 125
- option dbu
- box "", 1, 5 5 70 115
- text "c = Channel Message", 2, 10 15 80 10
- text "p = Private Message", 3, 10 25 80 10
- text "n = Private Notice", 4, 10 35 80 10
- text "N = Channel Notice", 5, 10 45 80 10
- text "P = Part Message", 6, 10 55 80 10
- text "q = Quit Message", 7, 10 65 80 10
- text "d = DCC", 8, 10 75 80 10
- text "a = Away Message", 9, 10 85 80 10
- text "t = Channel Topic", 10, 10 95 80 10
- text "u = User", 11, 10 105 80 10
- }
- dialog spamfilter {
- title Spamfilter For $network
- size -1 -1 200 285
- option dbu
- box "Listing 0 Entry(s)", 1, 5 5 190 105
- list 2, 10 15 180 90, hsbar, vsbar, sort
- box "Type", 3, 5 110 190 35
- check "c", 4, 10 120 20 10
- check "p", 5, 30 120 20 10
- check "n", 6, 50 120 20 10
- check "N", 7, 70 120 20 10
- check "P", 8, 90 120 20 10
- check "q", 9, 10 130 20 10
- check "d", 10, 30 130 20 10
- check "a", 11, 50 130 20 10
- check "t", 12, 70 130 20 10
- check "u", 13, 90 130 20 10
- button "Help", 14, 160 125 30 10
- box "Action", 15, 5 145 190 45
- radio "Kill", 16, 10 155 30 10
- radio "Tempshun", 17, 50 155 35 10
- radio "Shun", 18, 90 155 30 10
- radio "KLine", 19, 130 155 30 10
- radio "GLine", 20, 10 165 30 10
- radio "ZLine", 21, 50 165 30 10
- radio "GZLine", 22, 90 165 30 10
- radio "Block", 23, 130 165 30 10
- radio "DCCBlock", 24, 10 175 30 10
- radio "Viruschan", 25, 50 175 30 10
- radio "Warn", 26, 90 175 30 10
- box "Regex", 27, 5 190 190 25
- edit "", 28, 10 200 180 10, autohs
- box "TKL Time", 29, 5 215 190 25
- edit "", 30, 10 225 30 10
- check "Minutes", 31, 50 225 30 10
- check "Days", 32, 80 225 30 10
- check "Weeks", 33, 110 225 30 10
- check "Perm", 34, 140 225 30 10
- box "Reason", 35, 5 240 190 25
- edit "", 36, 10 250 180 10, autohs
- button "Add", 37, 10 270 80 10
- button "Del", 38, 110 270 80 10
- }
- on *:dialog:spamfilter:*:*: {
- var %a = $dname, %b = $devent, %c = $did
- elseif (%b == sclick) {
- if (%c == 14) { dialog $iif($dialog(spamfilterhelp),-v,-dm spamfilterhelp) spamfilterhelp }
- if (%c == 37) {
- ; set type
- if ($did(4).state == 1) { var %type = $did(4) }
- if ($did(5).state == 1) { var %type = $iif(%type,$+(%type,$did(5)),$did(5)) }
- if ($did(6).state == 1) { var %type = $iif(%type,$+(%type,$did(6)),$did(6)) }
- if ($did(7).state == 1) { var %type = $iif(%type,$+(%type,$did(7)),$did(7)) }
- if ($did(8).state == 1) { var %type = $iif(%type,$+(%type,$did(8)),$did(8)) }
- if ($did(9).state == 1) { var %type = $iif(%type,$+(%type,$did(9)),$did(9)) }
- if ($did(10).state == 1) { var %type = $iif(%type,$+(%type,$did(10)),$did(10)) }
- if ($did(11).state == 1) { var %type = $iif(%type,$+(%type,$did(11)),$did(11)) }
- if ($did(12).state == 1) { var %type = $iif(%type,$+(%type,$did(12)),$did(12)) }
- if ($did(13).state == 1) { var %type = $iif(%type,$+(%type,$did(13)),$did(13)) }
- ; set action
- ; set regex
- if ($did(28)) { var %regex = $did(28) }
- ; set tkltime
- if ($did(30)) { var %tkl = $did(30) }
- if ($did(31).state == 1) { var %tkl = $iif(%tkl,$+(%tkl,$did(31)),$did(31)) }
- elseif ($did(32).state == 1) { var %tkl = $iif(%tkl,$+(%tkl,$did(32)),$did(32)) }
- elseif ($did(33).state == 1) { var %tkl = $iif(%tkl,$+(%tkl,$did(33)),$did(33)) }
- elseif ($did(34).state == 1) { var %tkl = $iif(%tkl,$+(%tkl,$did(34)),$did(34)) }
- :tklskip
- ; set regex
- if ($did(36)) { var %reason = $replace($did(36),$chr(32),$chr(95)) }
- ; take action
- }
- if (%c == 38) {
- if ($did(2).seltext) {
- else { spamfilter del $gettok($did(2).seltext,1-4,32) $gettok($did(2).seltext,6,32) | did -r spamfilter 2 | .enable #spamfilter | spamfilter }
- }
- }
- }
- }
- #spamfilter off
- raw *:*: {
- if ($dialog(spamfilter)) {
- if ($numeric == 229) {
- inc %spam_tot
- did -ra spamfilter 1 Listing %spam_tot Entry(s)
- did -a spamfilter 2 $3 $4 $7 $8 $9 $10- | did -z spamfilter 2
- }
- haltdef
- }
- }
- on ^*:snotice:*:*: {
- ;echo 4 -s $1-
- }
- #spamfilter end
- ; ========================================
- ; END SPAMFILTER INTERFACE DIALOG
- ; ========================================
- ; ========================================
- ; DEFCON INTERFACE DIALOG
- ; ========================================
- dialog defcon {
- title Defcon
- size -1 -1 120 80
- option dbu
- box "Security level:", 6, 5 5 110 70
- check "1. Maximum", 1, 10 15 50 10
- check "2.", 2, 10 25 50 10
- check "3. Medium", 3, 10 35 50 10
- check "4.", 4, 10 45 50 10
- check "5. Minimum", 5, 10 55 50 10
- button "Apply Changes", 7, 60 35 50 10
- }
- on *:dialog:defcon:*:*: {
- var %a = $dname, %b = $devent, %c = $did
- elseif (%b == sclick) {
- if (%c == 7) {
- var %aa = 5
- while (%aa) {
- dec %aa
- }
- }
- elseif ($istok(1 2 3 4 5,%c,32)) {
- var %aa = 5
- while (%aa) {
- if (%aa !== %c) && ($did(%aa).state == 1) { did -u %a %aa }
- dec %aa
- }
- }
- }
- }
- #defconcheck off
- on ^*:notice:*:*: {
- haltdef
- }
- #defconcheck end
- ; ========================================
- ; END DEFCON INTERFACE DIALOG
- ; ========================================
- ; ========================================
- ; NEWS INTERFACE DIALOG
- ; ========================================
- dialog news {
- title News Interface
- size -1 -1 195 125
- option dbu
- box "Listing 0 Entry(s)", 1, 5 5 185 75
- list 2, 10 15 175 50, hsbar, vsbar
- box "", 3, 5 80 185 40
- button "Remove", 4, 10 65 80 10
- edit "", 6, 10 90 175 10, autohs
- button "Create", 7, 10 105 80 10
- menu "Listing Option", 8
- item "Logon News", 9, 8
- item "Oper News", 10, 8
- item "Random News", 11, 8
- button "Global", 12, 105 65 80 10
- }
- on *:dialog:news:*:*: {
- var %a = $dname, %b = $devent, %c = $did
- if (%b == sclick) {
- if (%c == 4) {
- if ($did(2).seltext) {
- }
- }
- elseif (%c == 7) {
- if (%news_viewing) {
- if ($did(6)) {
- }
- }
- }
- elseif (%c == 12) {
- }
- }
- elseif (%b == menu) {
- }
- }
- #news off
- on ^*:notice:*:*: {
- if ($nick == OperServ) && ($dialog(news)) {
- if ($1- == Random news items:) || (new isin $1-) && (news item isin $1-) { }
- elseif ($1-3 == There is no) { .timer 1 2 newserror $1- }
- elseif ($1 isnum) { set -u2 %news_tot $1 | set -u2 %news_added $2- }
- else { did -ra news 1 Listing %news_tot Entry(s) | did -a news 2 %news_added $1- | did -z news 2 }
- haltdef
- }
- }
- #news end
- ; ========================================
- ; END NEWS INTERFACE DIALOG
- ; ========================================
- ; ========================================
- ; GLOBAL INTERFACE DIALOG
- ; ========================================
- dialog global {
- title Global Interface
- size -1 -1 255 165
- option dbu
- box Listing $lines(saveglobal.txt) Entry(s), 1, 5 5 140 155
- list 2, 10 15 130 90, hsbar, vsbar, sort
- text "Global Message", 3, 10 105 130 10
- edit "", 4, 10 115 130 10, autohs
- button "Save", 5, 10 130 65 10
- button "Delete", 6, 75 130 65 10
- button "Send Global", 7, 10 145 130 10
- box "Timed Globals", 8, 150 5 100 155
- radio "15", 9, 160 25 20 10
- radio "30", 10, 190 25 20 10
- radio "45", 11, 160 40 20 10
- radio "60", 12, 190 40 20 10
- text "This will send the global 10 times, once every X minutes." 14, 155 60 90 20
- button "Send Timed Global", 13, 155 145 90 10
- }
- on *:dialog:global:*:*: {
- var %a = $dname, %b = $devent, %c = $did
- if (%b == init) {
- }
- elseif (%b == sclick) {
- if (%c == 5) {
- if ($did(4)) {
- did -ra %a 1 Listing $lines(saveglobal.txt) Entry(s)
- }
- }
- elseif (%c == 6) {
- if ($did(2).seltext) {
- did -ra %a 1 Listing $lines(saveglobal.txt) Entry(s)
- }
- }
- elseif (%c == 7) {
- }
- elseif (%c == 13) {
- if ($did(9).state == 1) { var %t.global = 900 }
- elseif ($did(10).state == 1) { var %t.global = 1800 }
- elseif ($did(11).state == 1) { var %t.global = 2700 }
- elseif ($did(12).state == 1) { var %t.global = 3600 }
- if ($did(2).seltext) {
- }
- }
- }
- }
- ; ========================================
- ; END GLOBAL INTERFACE DIALOG
- ; ========================================
- ; ========================================
- ; IRCOP CHAT INTERFACE DIALOG
- ; ========================================
- dialog ircopchat {
- title IrcOp Chat
- size -1 -1 300 175
- option dbu
- box "Received Messages", 1, 5 5 290 115
- list 2, 10 15 280 90, hsbar, vsbar, sort
- button "Delete", 3, 10 100 50 10
- button "Delete All", 4, 65 100 50 10
- box "Sending Interface", 5, 5 125 290 40
- edit "", 6, 10 135 280 10, autohs
- button "WallOps", 7, 10 150 40 10
- button "GlobOps", 8, 55 150 40 10
- button "LocOps", 9, 100 150 40 10
- button "ChatOps", 10, 145 150 40 10
- button "AdminChat", 11, 190 150 40 10
- button "NetAdmin.Chat", 12, 235 150 40 10
- menu "Config..", 13
- item "Settings", 14, 13
- }
- on *:dialog:ircopchat:*:*: {
- var %a = $dname, %b = $devent, %c = $did
- elseif (%b == sclick) {
- if (%c == 3) {
- }
- elseif ($istok(7 8 9 10 11 12,%c,32)) {
- if ($did(6)) {
- if ($istok(7 8 9,%c,32)) { $did(%c) $did(6) }
- else {
- if (%c == 10) { chatops $did(6) }
- elseif (%c == 11) { adchat $did(6) }
- elseif (%c == 12) { nachat $did(6) }
- }
- }
- }
- }
- elseif (%b == menu) && (%c == 14) { dialog $iif($dialog(ircopchatsettings),-v,-dm ircopchatsettings) ircopchatsettings }
- }
- on $*:snotice:$(/( $+ %ircopchatsettings $+ )\b/iS): {
- if ($dialog(ircopchat)) { did -a ircopchat 2 $network $date $timestamp $1- | did -z ircopchat 2 }
- }
- dialog ircopchatsettings {
- title ircopchatsettings
- size -1 -1 70 85
- option dbu
- box "Catch", 1, 5 5 60 75
- check "GlobOps", 2, 10 15 50 10
- check "LocOps", 3, 10 25 50 10
- check "ChatOps", 4, 10 35 50 10
- check "AdminChat", 5, 10 45 50 10
- check "NetAdmin.Chat", 6, 10 55 50 10
- button "Save", 7, 10 65 50 10
- }
- on *:dialog:ircopchatsettings:*:*: {
- var %a = $dname, %b = $devent, %c = $did
- if (%b == init) {
- if ($istok(%ircopchatsettings,Global,124)) { did -c %a 2 }
- if ($istok(%ircopchatsettings,LocOps,124)) { did -c %a 3 }
- if ($istok(%ircopchatsettings,ChatOps,124)) { did -c %a 4 }
- if ($istok(%ircopchatsettings,AdminChat,124)) { did -c %a 5 }
- if ($istok(%ircopchatsettings,NetAdmin.Chat,124)) { did -c %a 6 }
- }
- elseif (%b == sclick) {
- if (%c == 7) {
- unset %ircopchatsettings
- if ($did(2).state = 1) { set %ircopchatsettings $addtok(Global,%ircopchatsettings,124) }
- if ($did(3).state = 1) { set %ircopchatsettings $addtok(LocOps,%ircopchatsettings,124) }
- if ($did(4).state = 1) { set %ircopchatsettings $addtok(ChatOps,%ircopchatsettings,124) }
- if ($did(5).state = 1) { set %ircopchatsettings $addtok(AdminChat,%ircopchatsettings,124) }
- if ($did(6).state = 1) { set %ircopchatsettings $addtok(NetAdmin.Chat,%ircopchatsettings,124) }
- }
- }
- }
- ; ========================================
- ; END IRCOP CHAT INTERFACE DIALOG
- ; ========================================
- ; ========================================
- ; OPERSERV ACCESS LIST DIALOG
- ; ========================================
- dialog osaccess {
- title OperServ Access List
- size -1 -1 195 135
- option dbu
- box "Listing 0 Entry(s)", 1, 5 5 90 125
- list 2, 10 15 80 90, hsbar, vsbar, sort
- box "", 3, 100 5 90 125
- text "Nick", 4, 105 15 50 10
- edit "", 5, 105 25 80 10, autohs
- button "Add", 6, 105 110 80 10
- button "Del", 7, 10 110 80 10
- menu "Listing Option", 8
- item "Admin List", 9, 8
- item "Oper List", 10, 8
- item "Staff List", 11, 8
- }
- on *:dialog:osaccess:*:*: {
- var %a = $dname, %b = $devent, %c = $did
- if (%b == init) { set %osa_tot 0 }
- elseif (%b == sclick) {
- if ($istok(6 7,%c,32)) {
- if ($did(%c) == add) { did -r osaccess 5 }
- }
- }
- elseif (%b == menu) {
- set %osviewing $gettok($did(%c),1,32) | did -ra osaccess 1 Listing 0 %osviewing Entry(s)
- did $iif(%osviewing == Staff,-b,-e) %a 5-7 | set %osa_tot 0 | did -r osaccess 2
- }
- }
- #osaccess off
- on ^*:notice:*:*: {
- if ($nick == OperServ) && ($dialog(osaccess)) {
- elseif (already exists on isin $1-) { .timer 1 2 osaccesserror $strip($1-) }
- elseif ($1 isnum) { inc %osa_tot | did -ra osaccess 1 Listing %osa_tot %osviewing Entry(s) | did -a osaccess 2 $2 | did -z osaccess 2 }
- else {
- if (!$istok(Level List,$2,32)) { inc %osa_tot | did -ra osaccess 1 Listing %osa_tot %osviewing Entry(s) | did -a osaccess 2 $2- | did -z osaccess 2 }
- }
- haltdef
- }
- }
- #osaccess end
- ; ========================================
- ; END OPERSERV ACCESS LIST DIALOG
- ; ========================================
- ; ========================================
- ; OPERSERV EXCEPTION DIALOG
- ; ========================================
- dialog os_except {
- title Exeption List For $network
- size -1 -1 200 165
- option dbu
- box "", 1, 5 5 120 115
- text "Limit", 2, 10 15 30 10
- list 3, 10 25 30 90, hsbar, vsbar
- text "Host", 4, 40 15 80 90
- list 5, 40 25 80 90, hsbar, vsbar
- box "", 6, 130 5 65 115
- text "Time", 7, 140 15 40 10
- check "1h", 8, 140 25 20 10
- check "1d", 9, 160 25 20 10
- check "7d", 10, 140 40 20 10
- check "Perm", 11, 160 40 20 10
- text "Limit", 12, 140 55 40 10
- check "5", 13, 140 65 20 10
- check "10", 14, 160 65 20 10
- check "20", 15, 140 80 20 10
- check "50", 16, 160 80 20 10
- text "Host To Add", 17, 10 120 50 10
- edit "", 18, 10 130 180 10, autohs
- button "Add", 19, 10 145 80 10
- button "Del", 20, 110 145 80 10
- }
- on *:dialog:os_except:*:*: {
- var %a = $dname, %b = $devent, %c = $did
- if (%b == init) { os_get-e }
- elseif (%b == sclick) {
- if (%c == 19) {
- if ($did(8).state == 1) { var %os_expiry = $+(+,$did(8)) }
- elseif ($did(9).state == 1) { var %os_expiry = $+(+,$did(9)) }
- elseif ($did(10).state == 1) { var %os_expiry = $+(+,$did(10)) }
- elseif ($did(11).state == 1) { var %os_expiry = +0 }
- if ($did(13).state == 1) { var %os_limit = $did(13) }
- elseif ($did(14).state == 1) { var %os_limit = $did(14) }
- elseif ($did(15).state == 1) { var %os_limit = $did(15) }
- elseif ($did(16).state == 1) { var %os_limit = $did(16) }
- elseif (!%os_limit) { var %os_limit = $os_def-limit }
- if ($did(18)) { operserv exception add %os_expiry $did(18) %os_limit $os_def-reason | did -r os_except 3,5 | os_get-e }
- }
- elseif (%c == 20) {
- if ($did(5).seltext) { operserv exception del $did(5).seltext | did -r os_except 3,5 | os_get-e }
- }
- }
- }
- alias os_get-e {
- }
- alias os_def-limit return 5
- alias os_def-reason return Default Exception Reason
- #os_exception off
- on ^*:notice:*:*: {
- if ($nick == OperServ) && ($dialog(os_except)) {
- if ($1- == Current Session Limit Exception list:) || (set to isin $1-) || (Deleted isin $1-) || ($1- == Num Limit Host) { haltdef }
- else {
- inc %os_tot
- did -ra os_except 1 Listing %os_tot Exception Entry(s)
- did -a os_except 3 $2 | did -z os_except 3
- did -a os_except 5 $3- | did -z os_except 5
- haltdef
- }
- }
- }
- #os_exception end
- ; ========================================
- ; END OPERSERV EXCEPTION DIALOG
- ; ========================================
- ; ========================================
- ; OPERSERV MODULES LIST DIALOG
- ; ========================================
- dialog modules {
- title Modules List For $network
- size -1 -1 195 135
- option dbu
- box "Listing 0 Entry(s)", 1, 5 5 90 125
- list 2, 10 15 80 90, hsbar, vsbar, sort
- box "", 3, 100 5 90 125
- text "Module:", 4, 105 15 80 10
- edit "", 5, 105 25 80 10, autohs
- button "Load", 6, 105 110 80 10
- button "UnLoad", 7, 10 110 80 10
- text "Note: Do not include the file extension.", 8, 105 35 80 20
- }
- on *:dialog:modules:*:*: {
- var %a = $dname, %b = $devent, %c = $did
- elseif (%b == sclick) {
- if (%c == 6) {
- }
- elseif (%c == 7) {
- }
- }
- }
- #modules off
- on ^*:notice:*:*: {
- if ($nick == OperServ) && ($dialog(modules)) {
- if (Module: == $1) { did -a modules 2 $strip($2-) | did -z modules 2 }
- haltdef
- }
- }
- #modules end
- ; ========================================
- ; END OPERSERV MODULES LIST DIALOG
- ; ========================================
- ; ========================================
- ; SERVERS LIST DIALOG
- ; ========================================
- dialog servers {
- title Connected Servers
- size -1 -1 100 135
- option dbu
- box "Listing 0 Entry(s)", 1, 5 5 90 125
- list 2, 10 15 80 90, hsbar, vsbar
- button "Kill", 3, 10 105 80 10
- button "Restart", 4, 10 115 80 10
- }
- on *:dialog:servers:*:*: {
- var %a = $dname, %b = $devent, %c = $did
- elseif (%b == sclick) {
- }
- }
- #serversmap off
- raw *:*: {
- if ($dialog(servers)) {
- if ($numeric == 006) { inc %map_tot | did -a servers 2 $remove($2-,|,`,-) | did -z servers 2 }
- elseif ($numeric == 007) { did -ra servers 1 Listing %map_tot Entry(s) | unset %map_tot | .disable #serversmap }
- haltdef
- }
- }
- #serversmap end
- ; ========================================
- ; END SERVERS LIST DIALOG
- ; ========================================
- ; ========================================
- ; FORBIDDEN LIST DIALOG
- ; ========================================
- dialog forbidden_list {
- title Forbidden List For $network
- size -1 -1 110 180
- option dbu
- box "Listing 0 Entry(s)", 1, 5 5 100 170
- list 2, 10 15 90 90, hsbar, vsbar, sort
- text "... To Forbid", 3, 10 110 90 10
- edit "", 4, 10 120 90 10, autohs
- text "Reason", 5, 10 130 90 10
- edit "", 6, 10 140 90 10, autohs
- button "Add", 7, 10 155 40 10
- button "Del", 8, 60 155 40 10
- menu "Listing Options", 9
- item "List Channels", 10, 9
- item "List Nicks", 11, 9
- }
- on *:dialog:forbidden_list:*:*: {
- var %a = $dname, %b = $devent, %c = $did
- if (%b == menu) {
- set %forbidview $iif(%c == 10,ChanServ,NickServ)
- forbidrefresh
- }
- elseif (%b == dclick) {
- }
- elseif (%b == sclick) {
- if (%c == 7) {
- if ($did(4)) && ($did(6)) {
- var %forbid = $iif(%forbidview == ChanServ,$iif($left($did(4),1) == $chr(35),$did(4),$+($chr(35),$did(4))),$did(4))
- }
- }
- elseif (%c == 8) {
- }
- }
- }
- #forbid off
- on ^*:notice:*:*: {
- if ($nick == ChanServ) || ($nick == NickServ) {
- elseif (%forbidview == ChanServ) && ($left($1,1) == $chr(35)) { inc %forbid_tot | did -a forbidden_list 2 $1 | did -z forbidden_list 2 }
- elseif (%forbidview == NickServ) { inc %forbid_tot | did -a forbidden_list 2 $1 | did -z forbidden_list 2 }
- haltdef
- }
- }
- #forbid end
- ; ========================================
- ; END FORBIDDEN LIST DIALOG
- ; ========================================
- ; ========================================
- ; NOEXPIRE LIST DIALOG
- ; ========================================
- dialog noexpire_list {
- title NoExpire List For $network
- size -1 -1 110 160
- option dbu
- box "Listing 0 Entry(s)", 1, 5 5 100 150
- list 2, 10 15 90 90, hsbar, vsbar, sort
- text "... To NoExpire", 3, 10 110 90 10
- edit "", 4, 10 120 90 10, autohs
- button "Add", 7, 10 135 40 10
- button "Del", 8, 60 135 40 10
- menu "Listing Options", 9
- item "List Channels", 10, 9
- item "List Nicks", 11, 9
- }
- on *:dialog:noexpire_list:*:*: {
- var %a = $dname, %b = $devent, %c = $did
- if (%b == menu) {
- set %noexpireview $iif(%c == 10,ChanServ,NickServ)
- noexpirerefresh
- }
- elseif (%b == dclick) {
- }
- elseif (%b == sclick) {
- if (%c == 7) {
- if ($did(4)) {
- var %noexpire = $iif(%noexpireview == ChanServ,$iif($left($did(4),1) == $chr(35),$did(4),$+($chr(35),$did(4))),$did(4))
- .msg %noexpireview $iif(%noexpireview == ChanServ,set,saset) %noexpire noexpire on | did -r %a 4 | noexpirerefresh
- }
- }
- elseif (%c == 8) {
- if ($did(2).seltext) { .msg %noexpireview $iif(%noexpireview == ChanServ,set,saset) $did(2).seltext noexpire off | noexpirerefresh }
- }
- }
- }
- #noexpire off
- on ^*:notice:*:*: {
- if ($nick == ChanServ) || ($nick == NickServ) {
- elseif (%noexpireview == ChanServ) && ($left($1,1) == $chr(33)) { inc %noexpire_tot | did -a noexpire_list 2 $right($1,$calc($len($1) - 1)) | did -z noexpire_list 2 }
- elseif (%noexpireview == NickServ) && ($1 !== End) { inc %noexpire_tot | did -a noexpire_list 2 $right($1,$calc($len($1) - 1)) | did -z noexpire_list 2 }
- haltdef
- }
- }
- #noexpire end
- ; ========================================
- ; END NOEXPIRE LIST DIALOG
- ; ========================================
- ; ========================================
- ; LINES DIALOG
- ; ========================================
- dialog lines {
- title Lines For $network
- size -1 -1 200 185
- option dbu
- box "Listing 0 Entry(s)", 1, 5 5 120 115
- text "Host:Reason", 2, 10 15 110 90
- list 3, 10 25 110 90, hsbar, vsbar
- box "", 4, 130 5 65 115
- text "Time", 5, 140 15 40 10
- check "1h", 6, 140 25 20 10
- check "1d", 7, 160 25 20 10
- check "7d", 8, 140 40 20 10
- check "Perm", 9, 160 40 20 10
- text "Host/IP To Add", 10, 10 120 50 10
- edit "", 11, 10 130 180 10, autohs
- text "Reason", 12, 10 140 50 10
- edit "", 13, 10 150 180 10, autohs
- button "Add", 14, 10 165 80 10
- button "Del", 15, 110 165 80 10
- menu "Listing Options", 16
- item "SGLINE", 17, 16
- item "SQLINE", 18, 16
- item "SZLINE", 19, 16
- item "AKILL", 20, 16
- item "GLINE", 21, 16
- item "KLINE", 22, 16
- item "GZLINE", 23, 16
- }
- on *:dialog:lines:*:*: {
- var %a = $dname, %b = $devent, %c = $did
- if (%b == sclick) {
- if (%c == 14) {
- if ($did(6).state == 1) { var %kg_expiry = $+(+,$did(6)) }
- elseif ($did(7).state == 1) { var %kg_expiry = $+(+,$did(7)) }
- elseif ($did(8).state == 1) { var %kg_expiry = $+(+,$did(8)) }
- elseif ($did(9).state == 1) { var %kg_expiry = $+(+,0) }
- else { var %kg_expiry = $+(+,0) }
- if ($did(11)) && ($did(13)) {
- if ($istok(sgline sqline szline akill,%lines_viewing,32)) { .msg operserv %lines_viewing add %kg_expiry $did(11) $+(:,$did(13)) }
- if ($istok(gline kline gzline,%lines_viewing,32)) { %lines_viewing $did(11) $iif(%kg_expiry,%kg_expiry) $did(13) }
- did -ra lines 1 Listing 0 %lines_viewing Entry(s)
- if ($istok(gzline,%lines_viewing,32)) { %lines_viewing }
- if ($istok(gline kline,%lines_viewing,32)) { stats $left(%lines_viewing,1) }
- }
- }
- elseif (%c == 15) {
- if ($did(3).seltext) {
- if ($istok(sgline sqline szline akill,%lines_viewing,32)) { .msg operserv %lines_viewing del $gettok($did(3).seltext,1,32) }
- if ($istok(gline kline gzline,%lines_viewing,32)) { %lines_viewing $+(-,$gettok($did(3).seltext,1,32)) }
- did -ra lines 1 Listing 0 %lines_viewing Entry(s)
- if ($istok(gzline,%lines_viewing,32)) { %lines_viewing }
- if ($istok(gline kline,%lines_viewing,32)) { stats $left(%lines_viewing,1) }
- }
- }
- }
- elseif (%b == menu) {
- did -r %a 3 | set %lines_viewing $did(%c)
- did -ra lines 1 Listing 0 %lines_viewing Entry(s)
- .enable #lines
- if ($istok(gzline,%lines_viewing,32)) { %lines_viewing }
- if ($istok(gline kline,%lines_viewing,32)) { stats $left(%lines_viewing,1) }
- }
- }
- #lines off
- on ^*:notice:*:*: {
- if ($nick == OperServ) && ($dialog(lines)) {
- if ($istok(Num Current,$1,32)) { }
- if ($1 isnum) {
- did -ra lines 1 Listing $1 %lines_viewing Entry(s)
- did -a lines 3 $2-
- did -z lines 3
- }
- haltdef
- }
- }
- raw *:*: {
- if ($numeric == 223) { inc %kg_linetot | did -a lines 3 $3 : $7- }
- elseif ($numeric == 219) {
- did -z lines 3
- did -ra lines 1 Listing $iif(%kg_linetot,%kg_linetot,0) %lines_viewing Entry(s)
- }
- haltdef
- }
- #lines end
- ; ========================================
- ; END LINES DIALOG
- ; ========================================
- ; ========================================
- ; LIST USERS DIALOG
- ; ========================================
- dialog listuserdata {
- title List Users
- size -1 -1 200 175
- option dbu
- box "", 1, 5 5 90 105
- list 2, 10 15 80 90, hsbar, vsbar, sort
- box "Actions", 3, 100 5 95 55
- button "SAJoin", 4, 105 15 30 10
- button "SAPart", 5, 150 15 30 10
- button "Kill", 6, 105 30 30 10
- button "Shun", 7, 150 30 30 10
- button "G:Line", 8, 105 45 30 10
- box "Reason", 9, 5 110 190 30
- edit "", 10, 10 120 180 10, autohs
- box "Channel", 11, 5 140 190 30
- edit "", 12, 10 150 180 10, autohs
- box "Period", 15, 100 60 95 50
- radio "10m", 16, 105 70 30 10
- radio "15m", 17, 135 70 30 10
- radio "30m", 18, 165 70 30 10
- radio "1h", 19, 105 90 30 10
- radio "1d", 20, 135 90 30 10
- radio "Perm", 21, 165 90 30 10
- menu "Listing Options", 22
- item "List Global Users", 23, 22
- item "List Not In Chan Users", 24, 22
- item "List +B (BOT) Users", 25, 22
- button "Join", 26, 105 15 30 10
- button "Kill", 27, 150 15 30 10
- button "Shun", 28, 105 30 30 10
- }
- on *:dialog:listuserdata:*:*: {
- var %a = $dname, %b = $devent, %c = $did
- if (%b == init) { did -h %a 4-8,26-28 }
- elseif (%b == menu) {
- if (%c == 23) { did -e %a 10,12 | did -h %a 26-28 | did -v %a 4-8 | set %listuserview 1 | listuserlist }
- elseif (%c == 24) { did -b %a 10,12 | did -h %a 4-8 | did -v %a 26-28 | set %listuserview 2 | listuserlist }
- elseif (%c == 25) { did -e %a 10,12 | did -h %a 26-28 | did -v %a 4-8 | set %listuserview 3 | listuserlist }
- }
- elseif (%b == sclick) {
- if ($istok(4 5 6 7 8,%c,32)) {
- if ($did(listuserdata,2).seltext) {
- if ($did(listuserdata,16).state == 1) { var %period = $did(listuserdata,16) }
- elseif ($did(listuserdata,17).state == 1) { var %period = $did(listuserdata,17) }
- elseif ($did(listuserdata,18).state == 1) { var %period = $did(listuserdata,18) }
- elseif ($did(listuserdata,19).state == 1) { var %period = $did(listuserdata,19) }
- elseif ($did(listuserdata,20).state == 1) { var %period = $did(listuserdata,20) }
- elseif ($did(listuserdata,21).state == 1) { var %period = 0 }
- else { var %period = 0 }
- if (%c == 4) { listuserdataaction $did(listuserdata,2).seltext sajoin %listuserdatachan }
- elseif (%c == 5) { listuserdataaction $did(listuserdata,2).seltext sapart %listuserdatachan | listuserlist }
- elseif (%c == 6) { listuserdataaction $did(listuserdata,2).seltext kill $iif($did(listuserdata,10),$did(listuserdata,10),$listuserautokillreason) | listuserlist }
- elseif (%c == 7) { listuserdataaction $did(listuserdata,2).seltext shun %period $iif($did(listuserdata,10),$did(listuserdata,10),$listuserautoshunreason) | listuserlist }
- elseif (%c == 8) { listuserdataaction $did(listuserdata,2).seltext gline %period $iif($did(listuserdata,10),$did(listuserdata,10),$listuserautoglinereason) | listuserlist }
- }
- }
- }
- }
- alias listuserlist {
- if (%listuserview == 1) { set %glob_tot 0 | did -r listuserdata 2 | .enable #listglobal | os userlist }
- elseif (%listuserview == 2) { set %idle_tot 0 | did -r listuserdata 2 | .enable #listidle | os notinchanlist }
- }
- alias listuserdataaction {
- tokenize 32 $1-
- $iif($istok(sajoin sapart kill shun,$2,32),$2 $1 $3-,$2 $3 $1 $4-)
- }
- #listglobal off
- on ^*:notice:*:*: {
- if ($nick == OperServ) && ($dialog(listuserdata)) {
- else { inc %glob_tot | did -ra listuserdata 1 Listing %glob_tot Entry(s) | did -a listuserdata 2 $1 | did -z listuserdata 2 }
- haltdef
- }
- }
- #listglobal end
- #listidle off
- on ^*:notice:*:*: {
- if ($nick == OperServ) && ($dialog(listuserdata)) {
- if (Out of isin $1-) && (possible malicious clients were detected. isin $1-) { did -ra listuserdata 1 Listing %idle_tot Entry(s) | unset %idle_tot | .disable #listidle }
- elseif ($1 == Match:) { inc %idle_tot | did -ra listuserdata 1 Listing %idle_tot Entry(s) | did -a listuserdata 2 $2 }
- haltdef
- }
- }
- #listidle end
- #listbots off
- raw *:*: {
- if ($dialog(listuserdata)) {
- if ($numeric == 352) {
- tokenize 32 $1-
- inc %bot_tot | did -ra listuserdata 1 Listing %bot_tot Bot Entry(s) | did -a listuserdata 2 $6
- }
- haltdef
- }
- }
- #listbots end
- ; ========================================
- ; END LIST USERS DIALOG
- ; ========================================
- ; ========================================
- ; CHANGE USER DATA DIALOG
- ; ========================================
- dialog chguserdata {
- title Change User Data
- size -1 -1 195 170
- option dbu
- box "", 1, 5 5 90 105
- list 2, 10 15 80 95, hsbar, vsbar, sort
- box "", 3, 100 5 90 105
- text "Change:", 4, 110 15 50 10
- check "Nick", 5, 110 25 30 10
- check "Ident", 6, 150 25 30 10
- check "Host", 7, 110 40 30 10
- check "Name", 8, 150 40 30 10
- edit "", 9, 110 50 70 10
- button "Change", 10, 110 65 70 10
- text "NOTE: Nick requires superadmin.", 11, 110 75 70 20
- box "", 12, 5 110 185 55
- text "Nick", 13, 10 120 170 10
- text "Ident", 14, 10 130 170 10
- text "Host", 15, 10 140 170 10
- text "Name", 16, 10 150 170 10
- }
- on *:dialog:chguserdata:*:*: {
- var %a = $dname, %b = $devent, %c = $did
- elseif (%b == sclick) {
- if (%c == 10) {
- elseif ($did(6).state == 1) { var %chg = .chgident }
- elseif ($did(7).state == 1) { var %chg = .chghost }
- elseif ($did(8).state == 1) { var %chg = .chgname }
- if ($did(2).seltext) && ($did(9)) && (%chg) {
- %chg $did(2).seltext $did(9)
- }
- }
- }
- }
- #nsinfo off
- on ^*:notice:*:*: {
- if ($nick == NickServ) && ($dialog(chguserdata)) {
- haltdef
- if (is == $2) && (!$istok(a online,$3,32)) { did -ra chguserdata 16 Name: $3 }
- if (Is online from: isin $1-) {
- did -ra chguserdata 14 Ident: $gettok($4,1,64)
- did -ra chguserdata 15 Host: $gettok($4,2,64)
- }
- }
- }
- #nsinfo end
- #chguser off
- on ^*:notice:*:*: {
- if ($nick == OperServ) && ($dialog(chguserdata)) {
- else { did -a chguserdata 2 $1 }
- haltdef
- }
- }
- #chguser end
- ; ========================================
- ; END CHANGE USER DATA DIALOG
- ; ========================================
- ; ========================================
- ; SERVER ADMIN COMMANDS MENU
- ; ========================================
- .--( Show Info )--
- ..--( Show Motd File )--:motd $server
- ..--( Add to the end of MOTD File )--:addmotd $$?"Text to add"
- ..--( Oper )--:oper $me $$?"Password"
- ..--( Vhost )--:vhost $$?"LogIn" $$?"Password"
- ..--( Add )--:silence + $+ $$?"Nick"
- .--( Mass Message )--
- ..--( Wallops )--:wallops $$?"Message To Send"
- ..--( Globops )--:globops $$?"Message To Send"
- ..--( Locops )--:locops $$?"Message To Send"
- ..--( Online Ircops )--:chatops $$?"Message To Send"
- ..--( Online Admins )--:adchat $$?"Message To Send"
- ..--( Online NetAdmins )--:nachat $$?"Message To Send"
- .--( sa commands )--
- .--( Set commands )--
- ..--( Change your vhost )--:sethost $$?"new host name ( no spaces )"
- ..--( Change your ident )--:setident $$?"new ident"
- .--( Change User Info )--
- ..--( Change users host )--:chghost $$1 $$?"Host"
- ..--( Change users name )--:chgname $$1 $$?"Name"
- ..--( Change users ident )--:chgident $$1 $$?"Ident"
- .--( kgz lines )--
- ..--( k lines )--
- ...--( Add a 1 day kline )--:kline $$1 1d $$?"reason for kline"
- ...--( Del a kline )--:kline - $+ $$?"hostmask of user to remove"
- ..--( g lines )--
- ...--( Add a 1 day gline )--:gline $$1 1d $$?"reason for kline"
- ...--( Del a gline )--:gline - $+ $$?"hostmask of user to remove"
- ..--( zlines )--
- ...--( Add a permanent zline )--:zline $$?"*@ipmask" $$?"reason for zline"
- ...--( Del a zline )--:zline - $+ $$?"*@ipmask"
- .--( Shun )--
- ..--( 5 min )--:shun $$1 300 $$?"reason for shun"
- ..--( 10 min )--:shun $$1 300 $$?"reason for shun"
- ..--( 15 min )--:shun $$1 300 $$?"reason for shun"
- .--( Tempshun )--
- ..--( Add Tempshun )--:tempshun $$1 $$?"Reason for tempshun"
- ..--( Del Tempshun )--:tempshun - $+ $$1
- .--( Rehash config files )--:rehash $server
- }
- ; ========================================
- ; END SERVER ADMIN COMMANDS MENU
- ; ========================================
- ; ========================================
- ; SERVICES COMMANDS MENU
- ; ========================================
- --( Services Commands )--
- .--( OperServ )--
- ..--( ForceID )--:os forceid $$?"Nick"
- ..--( Kills )--
- ...--( Kill Clones )--:msgoperserv killclones $$?"Nick"
- ..--( Display )--
- ..--( Modify )--
- ..--( News Related )--
- ...--( Logon News )--
- ...--( OperNews )--
- ...--( Random News )--
- ..--( Modules )--
- ...--( Set )--
- ...--( No Op )--
- .--( ChanServ )--
- ...--( Set )--
- ...--( UnSet )--
- ...--( Swear Word Protection +G )--
- ...--( /Knock is not allowed +K )--
- ...--( Registered Nicks Only Allowed +M )--
- ...--( No OutSide Messages +n )--
- ...--( Auditorium +u )--
- ...--( Sop )--
- ...--( Vop )--
- .--( NickServ )--
- ..--( Set )--
- ..--( Sa-Set )--
- ..--( Get )--
- ..--( Access )--
- .--( BotServ )--
- ..-
- ..-
- ..--( set )--
- ...-
- ..-
- ..--( bot talk )--
- ..-
- .--( HostServ )--
- }
- ; ========================================
- ; END SERVICES COMMANDS MENU
- ; ========================================
- ; ========================================
- ; SERVICES COMMANDS HELP MENU
- ; ========================================
- .--( OperServ )--
- ..--( Kills )--
- ..--( Display )--
- ..--( Modify )--
- ..--( News Related )--
- ...--( Logon News )--
- ...--( OperNews )--
- ...--( Random News )--
- ..--( Modules )--
- ...--( Set )--
- ...--( No Op )--
- .--( ChanServ )--
- ...--( Set )--
- ...--( UnSet )--
- ...--( Swear Word Protection +G )--
- ...--( /Knock is not allowed +K )--
- ...--( Registered Nicks Only Allowed +M )--
- ...--( No OutSide Messages +n )--
- ...--( Auditorium +u )--
- ...--( Sop )--
- ...--( Vop )--
- .--( NickServ )--
- ..--( Set )--
- ..--( Sa-Set )--
- ..--( Get )--
- ..--( Access )--
- .--( BotServ )--
- ..-
- ..-
- ..--( set )--
- ...-
- ..-
- ..--( bot talk )--
- ..-
- .--( HostServ )--
- -
- }
- ; ========================================
- ; END SERVICES COMMANDS HELP MENU
- ; ========================================
Letzte Pastes