Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:TEXT:*:#:{
- if ($1 == !add) && ($nick isop #) {
- writeini users.ini $2 level $3
- }
- elseif ($1 == !del) && ($nick isop #) {
- remini users.ini $2
- }
- }
- on *:JOIN:#:{
- if ($readini(users.ini,$nick,level) isnum 1-3) { mode # +v $nick }
- if ($readini(users.ini,$nick,level) isnum 4-6) { mode # +h $nick }
- if ($readini(users.ini,$nick,level) isnum 7-10) { mode # +o $nick }
- if ($readini(users.ini,$nick,level) isnum 11-9998) { mode # +a $nick }
- if ($readini(users.ini,$nick,level) isnum 9999) { mode # +q $nick }
- }
- on *:INPUT:#: {
- if ($1 == .fill) && ($2 == e) {
- mode # +eeeeeeeeeeee 1 2 3 4 5 6 7 8 9 10 11 12
- mode # +eeeeeeeeeeee 13 14 15 16 17 18 19 20 21 22 23 24
- mode # +eeeeeeeeeeee 25 26 27 28 29 30 31 32 33 34 35 36
- mode # +eeeeeeeeeeee 37 38 39 40 41 42 43 44 45 46 47 48
- mode # +eeeeeeeeeeee 49 50 51 52 53 54 55 56 57 58 59 60
- mode # +eeeeeeeeeeee 49 50 51 52 53 54 55 56 57 58 59 60
- mode # +eeeeeeeeeeee 61 62 63 64 65 66 67 68 69 70 71 72
- mode # +eeeeeeeeeeee 73 74 75 76 77 78 79 80 81 82 83 84
- mode # +eeeeeeeeeeee 85 86 87 88 89 90 91 92 93 94 95 96
- mode # +eeee 97 98 99 100
- }
- if ($1 == .unfill) && ($2 == e) {
- mode # -eeeeeeeeeeee 1 2 3 4 5 6 7 8 9 10 11 12
- mode # -eeeeeeeeeeee 13 14 15 16 17 18 19 20 21 22 23 24
- mode # -eeeeeeeeeeee 25 26 27 28 29 30 31 32 33 34 35 36
- mode # -eeeeeeeeeeee 37 38 39 40 41 42 43 44 45 46 47 48
- mode # -eeeeeeeeeeee 49 50 51 52 53 54 55 56 57 58 59 60
- mode # -eeeeeeeeeeee 49 50 51 52 53 54 55 56 57 58 59 60
- mode # -eeeeeeeeeeee 61 62 63 64 65 66 67 68 69 70 71 72
- mode # -eeeeeeeeeeee 73 74 75 76 77 78 79 80 81 82 83 84
- mode # -eeeeeeeeeeee 85 86 87 88 89 90 91 92 93 94 95 96
- mode # -eeee 97 98 99 100
- }
- if ($1 == .fill) && ($2 == i) {
- mode # +IIIIIIIIIIII 1 2 3 4 5 6 7 8 9 10 11 12
- mode # +IIIIIIIIIIII 13 14 15 16 17 18 19 20 21 22 23 24
- mode # +IIIIIIIIIIII 25 26 27 28 29 30 31 32 33 34 35 36
- mode # +IIIIIIIIIIII 37 38 39 40 41 42 43 44 45 46 47 48
- mode # +IIIIIIIIIIII 49 50 51 52 53 54 55 56 57 58 59 60
- mode # +IIIIIIIIIIII 49 50 51 52 53 54 55 56 57 58 59 60
- mode # +IIIIIIIIIIII 61 62 63 64 65 66 67 68 69 70 71 72
- mode # +IIIIIIIIIIII 73 74 75 76 77 78 79 80 81 82 83 84
- mode # +IIIIIIIIIIII 85 86 87 88 89 90 91 92 93 94 95 96
- mode # +IIII 97 98 99 100
- }
- if ($1 == .unfill) && ($2 == i) {
- mode # -IIIIIIIIIIII 1 2 3 4 5 6 7 8 9. 10 11 12
- mode # -IIIIIIIIIIII 13 14 15 16 17 18 19 20 21 22 23 24
- mode # -IIIIIIIIIIII 25 26 27 28 29 30 31 32 33 34 35 36
- mode # -IIIIIIIIIIII 37 38 39 40 41 42 43 44 45 46 47 48
- mode # -IIIIIIIIIIII 49 50 51 52 53 54 55 56 57 58 59 60
- mode # -IIIIIIIIIIII 49 50 51 52 53 54 55 56 57 58 59 60
- mode # -IIIIIIIIIIII 61 62 63 64 65 66 67 68 69 70 71 72
- mode # -IIIIIIIIIIII 73 74 75 76 77 78 79 80 81 82 83 84
- mode # -IIIIIIIIIIII 85 86 87 88 89 90 91 92 93 94 95 96
- mode # -IIII 97 98 99 100
- }
- if ($1 == .fill) && ($2 == b) {
- mode # +bbbbbbbbbbbb 1 2 3 4 5 6 7 8 9 10 11 12
- mode # +bbbbbbbbbbbb 13 14 15 16 17 18 19 20 21 22 23 24
- mode # +bbbbbbbbbbbb 25 26 27 28 29 30 31 32 33 34 35 36
- mode # +bbbbbbbbbbbb 37 38 39 40 41 42 43 44 45 46 47 48
- mode # +bbbbbbbbbbbb 49 50 51 52 53 54 55 56 57 58 59 60
- mode # +bbbbbbbbbbbb 49 50 51 52 53 54 55 56 57 58 59 60
- mode # +bbbbbbbbbbbb 61 62 63 64 65 66 67 68 69 70 71 72
- mode # +bbbbbbbbbbbb 73 74 75 76 77 78 79 80 81 82 83 84
- mode # +bbbbbbbbbbbb 85 86 87 88 89 90 91 92 93 94 95 96
- mode # +bbbb 97 98 99 100
- }
- if ($1 == .nsu) {
- /msg nickserv update
- }
- if ($1 == .lL) {
- /cs set # mlock +ntlL $+ $2-
- }
- if ($1 == .dis) {
- cs levels # dis $2-
- }
- if ($1 == .op) {
- cs op #
- }
- if ($1 == .dev) {
- cs devoice #
- }
- if ($1 == deop) {
- cs deop #
- }
- if ($1 == .rlb) {
- mode $chan -b $ibl(#,1)
- }
- if ($1 == .bsadd) {
- bs badwords # add $2-
- }
- if ($1 == .rle) {
- mode $chan -e $iel(#,1)
- }
- if ($1 == .rli) {
- mode $chan -I $iil(#,1)
- }
- if ($1 == .rawr) {
- $chan 9RAWR IM A DINOSAUR
- }
- if ($1 == .i) {
- invite $2 $chan
- }
- if ($1 == .cdrop) {
- cs drop #
- }
- if ($1 == .nreg) {
- ns register urpass email
- }
- if ($1 == .creg) {
- cs register # urpass $2-
- }
- if ($1 == .restricted) {
- cs set # restricted $2-
- }
- if ($1 == .desc) {
- cs set # desc $2-
- }
- if ($1 == .web) {
- cs set # website $2-
- }
- if ($1 == .email) {
- cs set # email $2-
- }
- if ($1 == /cycle) {
- cycle $chan
- cycle $chan
- cycle $chan
- cycle $chan
- cycle $chan
- cycle $chan
- cycle $chan
- cycle $chan
- cycle $chan
- cycle $chan
- cycle $chan
- cycle $chan
- cycle $chan
- cycle $chan
- cycle $chan
- cycle $chan
- cycle $chan
- cycle $chan
- cycle $chan
- cycle $chan
- cycle $chan
- cycle $chan
- cycle $chan
- cycle $chan
- cycle $chan
- cycle $chan
- cycle $chan
- }
- if ($1 == .cinfo) {
- cs info $chan
- }
- if ($1 == .ninfo ) {
- ns info $2
- }
- if ($1 == .ms) {
- ms $2-
- }
- if ($1 == .fantasy) {
- bs set # fantasy $2-
- }
- if ($1 == .amsg) {
- amsg 11,1▁ ▂ ▃ ▄ ▅ ▆ ▇ 13 ◕‿◕ AMSG ◕‿◕ 11,1 ▇ ▆ ▅ ▄ ▃ ▂ ▁ :11 $2-
- }
- if ($1 == .qkb ) {
- .mode $chan -Q+b $address($2,2)
- kick $chan $2-
- }
- if ($1 == .qk ) {
- .mode $chan -Q
- kick $chan $2-
- }
- if ($1 == .chanreg) {
- cs register $chan urpass $2-
- }
- if ($1 == .chandrop) {
- cs drop $chan
- }
- if ($1 == .assign) {
- bs assign $chan $2-
- }
- if ($1 == .signkick) {
- cs set # signkick $2-
- }
- if ($1 == .cban ) {
- mode $chan +b ~c: $+ $2-
- }
- if ($1 == .dcban ) {
- mode $chan -b ~c: $+ $2-
- }
- if ($1 == .moad) {
- /mode $me $2-
- }
- if ($1 == .set) {
- cs set $chan $2-
- }
- if ($1 == .mlock ) {
- cs set $chan mlock $2-
- }
- if ($1 == .akick ) {
- cs akick $chan add $2-
- }
- if ($1 == .dakick ) {
- cs akick $chan del $2-
- }
- if ($1 == .cakick ) {
- cs clear # akick
- }
- if ($1 == .glist) {
- ns glist
- }
- if ($1 == .entrymsg) {
- cs set $chan entrymsg $2-
- }
- if ($1 == .av) {
- if ($2- == on) { cs levels # set autovoice -1 }
- if ($2- == off) { cs levels # set autovoice 3 }
- }
- if ($2) && ($1 == *eI) {
- mode $chan +eeII $address($2,9) $address($2,9)
- }
- if ($1 == .eI) && (!$2) {
- mode $chan +eeII $address($me,9) $address($me,2) $address($me,9) $address($me,2)
- }
- if ($2) && ($1 == .eI) {
- mode $chan +eeII $address($2,9) $address($2,2) $address($2,9) $address($2,2)
- }
- if ($1 == -eI) && (!$2) {
- mode $chan -eeII $address($me,9) $me $address($me,2) $address($me,9) $me $address($me,2)
- }
- if ($2) && ($1 == -eI) {
- mode $chan -eeII $address($2,9) $2 $address($2,2) $address($2,9) $2 $address($2,2)
- }
- if ($1 == .id) && (!$2) {
- /msg nickserv identify urpass
- }
- if ($1 == .add) || ($1 == .del) || ($1 == .list) {
- cs access $chan $remove($1,.) $2-
- }
- if ($1 == .add) && ($3 isnum) {
- mode $chan $iif($3 == 3,+v) $iif($3 == 4,+h-v) $iif($3 isnum 5-9,+o-hv) $iif($3 > 9,+ao-hv) $str($2 $+ $chr(32),5)
- }
- if ($left($1,1) == +) || ($left($1,1) == -) {
- $iif($remove($1,-,+) isalpha,mode $chan $eval($1-,2))
- }
- if ($1 == .v) {
- mode $chan +v $2
- }
- if ($1 == .dev) {
- mode $chan -v $2
- }
- if ($1 == .topiclock &) {
- cs set $chan topiclock $2-
- }
- if ($1 == .secureops) {
- cs set $chan secureops $2-
- }
- if ($1 == .settopic) {
- topic $chan $2-
- }
- if ($1 == .k) {
- kick $chan $2-
- }
- if ($1 == .kick) {
- kick $chan $2-
- }
- if ($1 == .op) {
- mode $chan +o $2
- }
- if ($1 == .mode) {
- mode $chan $2
- }
- if ($1 == .ban) {
- mode $chan +b $address($2,9) $2 $address($2,2) $address($2,9) $2 $address($2,2)
- }
- if ($1 == .deop) {
- mode $chan -o $2
- }
- if ($1 == .hop) {
- mode $chan +h $2
- }
- if ($1 == .dehop) {
- mode $chan -h $2
- }
- if ($1 == .aop) {
- mode $chan +ao $2 $2
- }
- if ($1 == .deaop) {
- mode $chan -ao $2 $2
- }
- if ($1 == .qo) {
- mode $chan +qo $2 $2
- }
- if ($1 == .deqo) {
- mode $chan -qo $2 $2
- }
- if ($1 == .powerrangerkick) {
- mode $chan +b $address($2,2)
- mode $chan +b $2
- kick $chan $2 $read(kick.txt)
- }
- if ($1 == .unban) {
- mode $chan -b $2
- mode $chan -b $address($2,2)
- }
- if ($1 == .chantakemodes) {
- mode $chan +iRmMpl-ntQ 1
- }
- if ($1 == .ban) {
- mode $chan +b $address($2,2)
- }
- if ($1 == .deop) {
- mode $chan -o $2
- }
- if ($1 == .topic) {
- msg $chan Topic7: $chan($chan).topic
- }
- if ($1 == .topiclock ) {
- cs set $chan topiclock $2
- }
- if ($1 == .whois ) {
- whois $2
- }
- if ($1 == .cgdemon ) {
- msg # 1,4I Love you 8,1CG_DEMON so much 4<3<3<3
- }
- if ($1 == .hl) {
- msg $chan $2-
- msg $chan $2-
- msg $chan $2-
- msg $chan $2-
- msg $chan $2-
- }
- }
- ##############
- alias masshl $iif($numtok($2-,32) < $nick($1,0),scid $cid masshl $1- $nick($1,$calc($numtok($2-,32) +1)),/msg $1-)
- ##############
- dialog qctime {
- title \"Query Control Ignore Time\"
- size -1 -1 140 50
- option dbu
- text \"How long for the ignore?\", 1, 4 10 100 10
- edit \"\", 2, 4 20 132 10, return
- button \"Seconds\", 3, 12 34 37 12, flat
- button \"Minutes\", 4, 51 34 37 12, flat
- button \"Permanent\", 5, 90 34 37 12, flat
- box \"Ignore\", 6, 1 1 138 48
- }
- on *:dialog:qctime:sclick:3: {
- set %pmcolor1 [ $+ [ %qnick ] ] $r(2,14)
- set %pmcolor2 [ $+ [ %qnick ] ] $r(2,14)
- close -m %qnick
- ignore -pu $+ $did(qctime,2) %qnick
- echo -at [Ignore] %qnick is being Ignored for $did(qctime,2) seconds.
- msg %qnick $+(,%pmcolor1 [ $+ [ %qnick ] ],$chr(40),,%pmcolor2 [ $+ [ %qnick ] ],Sorry) You have been $+(ignored,,%pmcolor1 [ $+ [ %qnick ] ],$chr(41)) 1,0
- dialog -x qctime
- unset %qnick
- }
- on *:dialog:qctime:sclick:4: {
- set %pmcolor1 [ $+ [ %qnick ] ] $r(2,14)
- set %pmcolor2 [ $+ [ %qnick ] ] $r(2,14)
- close -m %qnick
- ignore -pu $+ $calc($did(qctime,2) * 60) %qnick
- echo -at [Ignore] %qnick is being Ignored for $did(qctime,2) minutes.
- msg %qnick $+(,%pmcolor1 [ $+ [ %qnick ] ],$chr(40),,%pmcolor2 [ $+ [ %qnick ] ],Sorry) You have been $+(ignored,,%pmcolor1 [ $+ [ %qnick ] ],$chr(41)) 1,0
- dialog -x qctime
- unset %qnick
- }
- on *:dialog:qctime:sclick:5: {
- set %pmcolor1 [ $+ [ %qnick ] ] $r(2,14)
- set %pmcolor2 [ $+ [ %qnick ] ] $r(2,14)
- close -m %qnick
- ignore -p %qnick
- echo -at [Ignore] %qnick is being permanently Ignored. To remove it type /ignore -r %qnick $+ .
- msg %qnick $+(,%pmcolor1 [ $+ [ %qnick ] ],$chr(40),,%pmcolor2 [ $+ [ %qnick ] ],Sorry) You have been $+(ignored,,%pmcolor1 [ $+ [ %qnick ] ],$chr(41)) 1,0
- dialog -x qctime
- unset %qnick
- }
- dialog qctime2 {
- title \"Query Control Ignore Time\"
- size -1 -1 140 50
- option dbu
- text \"How long for the ignore?\", 1, 4 10 100 10
- edit \"\", 2, 4 20 132 10, return
- button \"Seconds\", 3, 12 34 37 12, flat
- button \"Minutes\", 4, 51 34 37 12, flat
- button \"Permanent\", 5, 90 34 37 12, flat
- box \"Ignore All\", 6, 1 1 138 48
- }
- on *:dialog:qctime2:sclick:3: {
- set %pmcolor1 [ $+ [ %qnick ] ] $r(2,14)
- set %pmcolor2 [ $+ [ %qnick ] ] $r(2,14)
- set -u $+ $did(qctime2,2) %qcignoreall on
- close -m %qnick
- ignore -pu $+ $did(qctime2,2) *
- echo -at [Ignore All] All Private Messages are being Ignored for $did(qctime,2) seconds. To remove it early type /ignoreall off
- msg %qnick $+(,%pmcolor1 [ $+ [ %qnick ] ],$chr(40),,%pmcolor2 [ $+ [ %qnick ] ],Sorry,$chr(44)) All Private Messages are now being $+(ignored,,%pmcolor1 [ $+ [ %qnick ] ],$chr(41)) 1,0
- dialog -x qctime2
- unset %qnick
- }
- on *:dialog:qctime2:sclick:4: {
- set %pmcolor1 [ $+ [ %qnick ] ] $r(2,14)
- set %pmcolor2 [ $+ [ %qnick ] ] $r(2,14)
- set -u $+ $calc($did(qctime2,2) * 60) %qcignoreall on
- close -m %qnick
- ignore -pu $+ $calc($did(qctime2,2) * 60) *
- echo -at [Ignore All] All Private Messages are being Ignored for $did(qctime,2) minutes. To remove it early type /ignoreall off
- msg %qnick $+(,%pmcolor1 [ $+ [ %qnick ] ],$chr(40),,%pmcolor2 [ $+ [ %qnick ] ],Sorry,$chr(44)) All Private Messages are now being $+(ignored,,%pmcolor1 [ $+ [ %qnick ] ],$chr(41)) 1,0
- dialog -x qctime2
- unset %qnick
- }
- on *:dialog:qctime2:sclick:5: {
- set %pmcolor1 [ $+ [ %qnick ] ] $r(2,14)
- set %pmcolor2 [ $+ [ %qnick ] ] $r(2,14)
- set %qcignoreall on
- close -m %qnick
- ignore -p *
- echo -at [Ignore All] All Private Messages are being permanently Ignored. To remove it type /ignoreall off
- msg %qnick $+(,%pmcolor1 [ $+ [ %qnick ] ],$chr(40),,%pmcolor2 [ $+ [ %qnick ] ],Sorry,$chr(44)) All Private Messages are now being $+(ignored,,%pmcolor1 [ $+ [ %qnick ] ],$chr(41)) 1,0
- dialog -x qctime2
- unset %qnick
- }
- dialog qc {
- title \"Query Controller\"
- size -1 -1 140 80
- option dbu
- edit \"\", 3, 4 10 132 10, read
- text \"From:\", 5, 4 24 14 8
- edit \"\", 7, 20 22 116 10, read
- button \"Accept\", 1, 12 34 37 12, flat
- button \"Decline\", 2, 51 34 37 12, flat
- button \"Ignore\", 6, 90 34 37 12, flat
- button \"Auto-Accept\", 8, 31 49 37 12, flat
- button \"Auto-Decline\", 9, 72 49 37 12, flat
- button \"Accept All\", 10, 12 63 37 12, flat
- button \"Decline All\", 11, 51 63 37 12, flat
- button \"Ignore All\", 12, 90 63 37 12, flat
- box \"Query Control\", 4, 1 1 138 77
- }
- on *:dialog:qc:sclick:1:{
- set %pmcolor3 [ $+ [ %qnick ] ] $r(2,14)
- set %pmcolor4 [ $+ [ %qnick ] ] $r(2,14)
- window -w %qnick
- msg %qnick $+(,%pmcolor3 [ $+ [ %qnick ] ],$chr(40),,%pmcolor4 [ $+ [ %qnick ] ],Your) query has been $+(accepted,,%pmcolor3 [ $+ [ %qnick ] ],$chr(41)) 1,0
- dialog -x qc
- window -a %qnick
- unset %qnick
- }
- on *:dialog:qc:sclick:2:{
- set %pmcolor1 [ $+ [ %qnick ] ] $r(2,14)
- set %pmcolor2 [ $+ [ %qnick ] ] $r(2,14)
- close -m %qnick
- msg %qnick $+(,%pmcolor1 [ $+ [ %qnick ] ],$chr(40),,%pmcolor2 [ $+ [ %qnick ] ],sorry) Your query has been $+(declined,,%pmcolor1 [ $+ [ %qnick ] ],$chr(41)) 1,0
- dialog -x qc
- unset %qnick
- }
- on *:dialog:qc:sclick:6:{
- dialog -x qc
- dialog -m qctime qctime
- }
- on *:dialog:qc:sclick:8:{
- set %pmcolor3 [ $+ [ %qnick ] ] $r(2,14)
- set %pmcolor4 [ $+ [ %qnick ] ] $r(2,14)
- window -w %qnick
- msg %qnick $+(,%pmcolor3 [ $+ [ %qnick ] ],$chr(40),,%pmcolor4 [ $+ [ %qnick ] ],Your) query has been added to the Auto-Accept $+(list,,%pmcolor3 [ $+ [ %qnick ] ],$chr(41)) 1,0
- set %autoaccept [ $+ [ %qnick ] ] Auto-Accept
- set %autoacceptlist $addtok(%autoacceptlist, %qnick, 32)
- dialog -x qc
- window -a %qnick
- unset %qnick
- }
- on *:dialog:qc:sclick:9:{
- set %pmcolor1 [ $+ [ %qnick ] ] $r(2,14)
- set %pmcolor2 [ $+ [ %qnick ] ] $r(2,14)
- close -m %qnick
- msg %qnick $+(,%pmcolor1 [ $+ [ %qnick ] ],$chr(40),,%pmcolor2 [ $+ [ %qnick ] ],sorry) Your query has been added to the Auto-Decline $+(list,,%pmcolor1 [ $+ [ %qnick ] ],$chr(41)) 1,0
- set %autodecline [ $+ [ %qnick ] ] Auto-Decline
- set %autodeclinelist $addtok(%autodeclinelist, %qnick, 32)
- dialog -x qc
- unset %qnick
- }
- on *:dialog:qc:sclick:10:{
- set %pmcolor1 [ $+ [ %qnick ] ] $r(2,14)
- set %pmcolor2 [ $+ [ %qnick ] ] $r(2,14)
- set %qcacceptall on
- window -w %qnick
- echo -at [Accept All] You have enabled the Accept All feature. All Private Messages will now be Accepted.
- msg %qnick $+(,%pmcolor1 [ $+ [ %qnick ] ],$chr(40),,%pmcolor2 [ $+ [ %qnick ] ],I) have just enabled the Accept All feature. All Private Messages will now be $+(Accepted.,,%pmcolor1 [ $+ [ %qnick ] ],$chr(41)) 1,0
- dialog -x qc
- window -a %qnick
- unset %qnick
- }
- on *:dialog:qc:sclick:11:{
- set %pmcolor1 [ $+ [ %qnick ] ] $r(2,14)
- set %pmcolor2 [ $+ [ %qnick ] ] $r(2,14)
- set %qcdeclineall on
- close -m %qnick
- echo -at [Decline All] You have enabled the Decline All feature. All Private Messages will now be Declined.
- msg %qnick $+(,%pmcolor1 [ $+ [ %qnick ] ],$chr(40),,%pmcolor2 [ $+ [ %qnick ] ],I) have just enabled the Decline All feature. All Private Messages will now be $+(Declined.,,%pmcolor1 [ $+ [ %qnick ] ],$chr(41)) 1,0
- dialog -x qc
- unset %qnick
- }
- on *:dialog:qc:sclick:12:{
- dialog -x qc
- dialog -m qctime2 qctime2
- }
- on *:OPEN:?: {
- if (%query.blocker) {
- if ($dialog(qc)) { halt }
- if (%qcacceptall) {
- set %qnick $nick
- set %pmcolor1 [ $+ [ %qnick ] ] $r(2,14)
- set %pmcolor2 [ $+ [ %qnick ] ] $r(2,14)
- echo -at [Accept All] Private Message from %qnick has been accepted.
- msg %qnick $+(,%pmcolor1 [ $+ [ %qnick ] ],$chr(40),,%pmcolor2 [ $+ [ %qnick ] ],All) Private Messages are being $+(Accepted.,,%pmcolor1 [ $+ [ %qnick ] ],$chr(41)) 1,0
- unset %qnick
- halt
- }
- if (%autoaccept [ $+ [ $nick ] ]) {
- set %pmcolor5 [ $+ [ $nick ] ] $r(2,14)
- set %pmcolor6 [ $+ [ $nick ] ] $r(2,14)
- msg $nick $+(,%pmcolor5 [ $+ [ $nick ] ],$chr(40),,%pmcolor6 [ $+ [ $nick ] ],Your) Query has been $+(Auto-Accepted,,%pmcolor5 [ $+ [ $nick ] ],$chr(41)) 1,0
- halt
- }
- if (%qcdeclineall) {
- set %qnick $nick
- set %pmcolor1 [ $+ [ %qnick ] ] $r(2,14)
- set %pmcolor2 [ $+ [ %qnick ] ] $r(2,14)
- close -m %qnick
- echo -at [Decline All] Private Message from %qnick has been declined.
- msg %qnick $+(,%pmcolor1 [ $+ [ %qnick ] ],$chr(40),,%pmcolor2 [ $+ [ %qnick ] ],All) Private Messages are being $+(Blocked.,,%pmcolor1 [ $+ [ %qnick ] ],$chr(41)) 1,0
- unset %qnick
- halt
- }
- if (%autodecline [ $+ [ $nick ] ]) {
- set %pmcolor5 [ $+ [ $nick ] ] $r(2,14)
- set %pmcolor6 [ $+ [ $nick ] ] $r(2,14)
- close -m $nick
- msg $nick $+(,%pmcolor5 [ $+ [ $nick ] ],$chr(40),,%pmcolor6 [ $+ [ $nick ] ],Your) Query has been $+(Auto-Declined,,%pmcolor5 [ $+ [ $nick ] ],$chr(41)) 1,0
- echo -at [Query Controller] Auto-Declined $nick $+ \'s Query.
- halt
- }
- else {
- %qnick = $nick
- set %pmcolor5 [ $+ [ $nick ] ] $r(2,14)
- set %pmcolor6 [ $+ [ $nick ] ] $r(2,14)
- window -h %qnick
- msg %qnick $+(,%pmcolor5 [ $+ [ $nick ] ],$chr(40),,%pmcolor6 [ $+ [ $nick ] ],Please) Wait a moment For $me to Accept/Decline your $+(query,,%pmcolor5 [ $+ [ $nick ] ],$chr(41)) 1,0
- dialog -m qc qc
- did -a qc 7 %qnick
- did -a qc 3 $1-
- }
- }
- }
- menu * {
- Query Controller
- . $+ $iif(%query.blocker,Turn Off,Turn On) $+ : $iif(%query.blocker,unset %query.blocker,set %query.blocker on))
- .Decline All
- .. $+ $iif(%qcdeclineall,off,on) $+ : $iif(%qcdeclineall,declineall off,declineall on)
- .Accept All
- .. $+ $iif(%qcacceptall,off,on) $+ : $iif(%qcacceptall,acceptall off,acceptall on)
- .Ignore All
- .. $+ $iif(%qcignoreall,off,on) $+ : $iif(%qcignoreall,ignoreall off,ignoreall on)
- }
- menu Query {
- Query Controller
- .Auto-Accept
- .. $+ $iif($active isin %autoacceptlist,Delete,Add) $+ : $iif($active isin %autoacceptlist,autoaccept del $active,autoaccept add $active)
- .Auto-Decline
- .. $+ $iif($active isin %autodeclinelist,Delete,Add) $+ : $iif($active isin %autodeclinelist,autodecline del $active,autodecline add $active)
- }
- alias autoaccept {
- if ($1 == add && $2 isin %autoacceptlist) {
- echo -a [Auto-Accept] $$2 is already in the Auto-Accept list
- }
- if ($1 == add && $2 !isin %autoacceptlist) {
- unset %autodecline [ $+ [ $2 ] ]
- set %autodeclinelist $remtok(%autodeclinelist, $2, 32)
- set %autoaccept [ $+ [ $2 ] ] Auto-Accept
- set %autoacceptlist $addtok(%autoacceptlist, $2, 32)
- echo -a [Auto-Accept] $$2 added to the Auto-Accept list
- }
- if ($regex($1,/^(del(ete)?|rem(ove)?)$/Si) && $2 !isin %autoacceptlist) {
- echo -a [Auto-Accept] $$2 was not found in the Auto-Accept list.
- }
- if ($regex($1,/^(del(ete)?|rem(ove)?)$/Si) && $2 isin %autoacceptlist) {
- unset %autoaccept [ $+ [ $2 ] ]
- set %autoacceptlist $remtok(%autoacceptlist, $2, 32)
- echo -a [Auto-Accept] $$2 deleted from the Auto-Accept list
- }
- if ($1 == list) {
- echo -a [Auto-Accept] %autoacceptlist
- }
- }
- alias autodecline {
- if ($1 == add && $2 isin %autodeclinelist) {
- echo -a [Auto-Decline] $$2 is already in the Auto-Decline list
- }
- if ($1 == add && $2 !isin %autodeclinelist) {
- unset %autoaccept [ $+ [ $2 ] ]
- set %autoacceptlist $remtok(%autoacceptlist, $2, 32)
- set %autodecline [ $+ [ $2 ] ] Auto-Decline
- set %autodeclinelist $addtok(%autodeclinelist, $2, 32)
- echo -a [Auto-Decline] $$2 added to the Auto-Decline list
- }
- if ($regex($1,/^(del(ete)?|rem(ove)?)$/Si) && $2 !isin %autodeclinelist) {
- echo -a [Auto-Decline] $$2 was not found in the Auto-Decline list.
- }
- if ($regex($1,/^(del(ete)?|rem(ove)?)$/Si) && $2 isin %autodeclinelist) {
- unset %autodecline [ $+ [ $2 ] ]
- set %autodeclinelist $remtok(%autodeclinelist, $2, 32)
- echo -a [Auto-Decline] $$2 deleted from the Auto-Decline list
- }
- if ($1 == list) {
- echo -a [Auto-Decline] %autodeclinelist
- }
- }
- alias acceptall {
- if ($1 == on && !%qcacceptall) {
- echo -at [Accept All] You have enabled the Accept All feature. All Private Messages will now be Accepted.
- set %qcacceptall on
- }
- elseif ($1 == off && %qcacceptall) {
- echo -at [Accept All] You have disabled the Accept All feature.
- unset %qcacceptall
- }
- elseif ($1 == on && %qcacceptall) {
- echo -at [Accept All] The Accept All feature is already enabled.
- }
- elseif ($1 == off && !%qcacceptall) {
- echo -at [Accept All] The Accept All feature is already disabled.
- }
- }
Add Comment
Please, Sign In to add comment