Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:INPUT:#: {
- if ($1 == .add) {
- if (($2 == $null) || ($3 == $null)) { echo -a You have not used correct syntax ([.] add <nick> <acclvl>) | halt }
- cs access $chan add $2 $3
- if ($3 isnum 3) { mode # +v-qaoh $str($2 $chr(32),5) } | if ($3 isnum 4) { mode # +h-qaov $str($2 $chr(32),5) } | if ($3 isnum 5-9) { mode # +o-qahv $str($2 $chr(32),5) } | if ($3 isnum 10-9999) { mode # +ao-qhv $str($2 $chr(32),5) } | echo -a Access level for $2 on # changed to $3
- }
- if ($1 == .names) {
- mode # +o $me
- names #
- }
- if ($1 == .del) {
- if ($2 == $null) { echo -a You have not used correct syntax ([.] del <nick>) | halt }
- cs access $chan del $2
- mode $chan -qaohv $str($2 $chr(32),5)
- echo -a Access for $2 on # removed
- }
- if ($istok(.k .kick,$1,32)) {
- if ($2 == $null) { echo -a You have not used correct syntax ([.] k/kick <nick>) | halt }
- mode $chan -eeeIII $address($2,2) $2 $address($2,2) $address($2,9) $2 $address($2,2)
- mode $chan -Q
- cs kick $chan $2 $3-
- kick $chan $2 $3-
- mode $chan +Q
- }
- if ($istok(.kb .kickban,$1,32)) {
- if ($2 == $null) { echo -a You have not used correct syntax ([.] kb/kickban <nick>) | halt }
- mode $chan -eeeeIIII $address($2,1) $address($2,9) $1 $address($2,2) $address($2,9) $2 $address($2,2) $address($2,1)
- mode $chan -Qqaoh $$2 $$2 $$2 $$2
- kick $chan $$2 $3-
- mode $chan +bb $2 $address($2,2)
- cs access $chan add $2 -9999
- cs akick $chan ADD $2 $3-
- mode $chan +Q
- }
- if ($1 == .unban) {
- if ($2 == $null) { echo -a You have not used correct syntax ([.] unban <nick>) | halt }
- cs akick $chan del $2
- /mode $chan -b $2
- /mode $chan -b $address($2,2)
- /mode $chan -b $address($2,9)
- /mode $chan -b $address($2,1)
- invite $2 $chan
- cs access $chan del $2
- invite $2 $chan
- }
- if ($istok(+b +ban,$1,32)) {
- if ($2 == $null) { echo -a You have not used correct syntax ([+] b/ban <nick>) | halt }
- mode $chan +b $2
- mode $chan +b $address($2,2)
- mode $chan +b $address($2,9)
- }
- if ($istok(-b -ban,$1,32)) {
- if ($2 == $null) { echo -a You have not used correct syntax ([-] b/ban <nick>) | halt }
- mode $chan -b $2
- mode $chan -b $address($2,2)
- mode $chan -b $address($2,9)
- }
- if ($1 == .csdrop) {
- if ($2 == $null) { echo -a You have not used correct syntax ([.] csdrop <chan>) | halt }
- $?"Are you sure you want to drop the channel? Doing so will end in dire consequences. (Yes/No)"
- if ($! == no) { halt }
- if ($! == yes) {
- cs clear $chan excepts
- cs clear $chan invites
- mode $chan +i
- cs access $chan clear list
- mode $chan +k $md5($rand(1,100000))
- cs akick $chan add *!*@*
- mode $chan -Q
- cs clear $chan users
- mode $chan -Q
- var %x = $nick(#,0) | while (%x) { kick # $nick(#,%x) $! | dec %x }
- }
- }
- if ($1 == .csundo) {
- if ($2 == $null) { echo -a You have not used correct syntax ([.] csundo <chan>) | halt }
- mode $2 -i
- mode $2 -k
- cs akick $2 del *!*@*
- cs clear $2 bans
- }
- if ($1 == .bans) {
- cs clear # bans
- }
- if (?akick iswm $1) { cs akick # $1 $2 $3- }
- if ($1 == .listakick) cs akick $chan list
- if ($1 == .rlb) mode # -b $ibl(#,1)
- if ($1 == .cdir) //run $mircdir
- if ($1 == .info) cs info $chan
- if ($1 == .inv) invite $2 $chan
- if ($wildtok(+m -m,$1,1,32)) mode # $v1
- if ($wildtok(+s -s,$1,1,32)) mode # $v1
- if ($wildtok(+i -i,$1,1,32)) mode # $v1
- if ($wildtok(+p -p,$1,1,32)) mode # $v1
- if ($wildtok(+Q -Q,$1,1,32)) mode # $v1
- if ($wildtok(+v -v,$1,1,32)) mode # $v1 { mode # $1 $+ vvvvv $2- }
- if ($wildtok(+h -h,$1,1,32)) mode # $v1 { mode # $1 $+ hhhhh $2- }
- if ($wildtok(+o -o,$1,1,32)) mode # $v1 { mode # $1 $+ ooooo $2- }
- if ($wildtok(+a -a,$1,1,32)) mode # $v1 { mode # $1 $+ aaaaa $2- }
- if ($wildtok(+q -q,$1,1,32)) mode # $v1 { mode # $1 $+ qqqqq $2- }
- if ($1 == .secure*) {
- if ($2 == on) { cs set # secureops on }
- if ($2 == off) { cs set # secureops off }
- }
- if ($1 == .topiclock*) {
- if ($2 == on) { cs set # topiclock on }
- if ($2 == off) { cs set # topiclock off }
- }
- if ($1 == .flood*) {
- if ($2 == on) { bs kick # flood on 3 10 5 }
- if ($2 == off) { bs kick # flood off }
- }
- if ($1 == .assign) bs assign $chan $2
- if ($1 == .reg) cs register $chan $md5($rand(1,100000)) $2-
- if ($1 == .redirect) cs set $chan mlock +lL 1 $2-
- if ($1 == .topic) topic $chan $2-
- if ($1 == .delexc) cs clear $chan excepts
- if ($1 == .delinv) cs clear $chan invites
- if ($1 == .greet) ns set greet $2-
- if ($1 == +cban) mode $chan +b ~c: $+ $2-
- if ($1 == -cban) mode $chan -b ~c: $+ $2-
- if ($1 == .nlist) ns alist
- if ($1 == .readmemo) msg MemoServ READ last
- if ($1 == .Sleep) { nick urnick | away Sleep }
- if ($1 == .AFK) {
- nick urnick
- away $2- | amsg $me has gone away reason - [ $2- ]
- if ($2 == $null) { away [ AWAY ] | amsg 4,1$me has gone away [ $2- ] }
- echo -a Your status has been set as away.
- }
- if ($1 == +o) { mode # +o $nick }
- if ($1 == -o) { mode # -o $nick }
- if ($1 == +h) { mode # +h $nick }
- if ($1 == -h) { mode # +h $nick }
- if ($1 == +v) { mode # +v $nick }
- if ($1 == -v) { mode # -v $nick }
- if ($1 == .Back) { nick urnick | away }
- if ($1 == .update) ns update
- if ($1 == .list) cs access $chan list $2-
- if ($1 == .amsg) amsg 4[15>15>15>15>11A4M9S12G15<15<15<15<4]13 $2-
- if ($1 == .clearakick) cs akick # clear list
- if ($1 == .clearbans) cs clear $chan bans
- if ($1 == .clearaccess) cs access $chan clear
- if ($1 == .clearusers) cs clear $chan users
- if ($1 == +ei) mode $chan +eeeeIIII $2 $address($2,1) $address($2,9) $address($2,2) $2 $address($2,1) $address($2,9) $address($2,2)
- if ($1 == -ei) mode $chan -eeeeIIII $2 $address($2,1) $address($2,9) $address($2,2) $2 $address($2,1) $address($2,9) $address($2,2)
- if ($1 == .ei) mode $chan +eeeeIIII $address($me,1) $address($me,9) $address($me,2) $address($me,1) $address($me,9) $address($me,2)
- if ($1 == .massv) {
- { alias mass {
- if ($me isop $chan) {
- if (voice isin +vvoice) { set %prefix $+(+,$str(v,$modespl)) | goto start }
- :start
- set %massing $nick($chan,0)
- while (%massing) {
- if ($nick($chan,%massing) != $me) { set %mass1 %mass1 $nick($chan,%massing) }
- if ($gettok(%mass1,0,32) = $modespl) { mode $chan %prefix %mass1 | unset %mass1 }
- dec %massing
- }
- mode $chan %prefix %mass1 | unset %mass1
- }
- else { echo -a *** Error you're not an op on $chan *** }
- }
- }
- }
- if ($1 == .massdv) {
- { alias mass {
- if ($me isop $chan) {
- if (devoice isin -vdevoice) { set %prefix $+(-,$str(v,$modespl)) }
- :start
- set %massing $nick($chan,0)
- while (%massing) {
- if ($nick($chan,%massing) != $me) { set %mass1 %mass1 $nick($chan,%massing) }
- if ($gettok(%mass1,0,32) = $modespl) { mode $chan %prefix %mass1 | unset %mass1 }
- dec %massing
- }
- mode $chan %prefix %mass1 | unset %mass1
- }
- else { echo -a *** Error you're not an op on $chan *** }
- }
- }
- }
- if ($1 == .masso) {
- alias mass {
- if ($me isop $chan) {
- if (op isin +oop) { set %prefix $+(+,$str(o,$modespl)) | goto start }
- :start
- set %massing $nick($chan,0)
- while (%massing) {
- if ($nick($chan,%massing) != $me) { set %mass1 %mass1 $nick($chan,%massing) }
- if ($gettok(%mass1,0,32) = $modespl) { mode $chan %prefix %mass1 | unset %mass1 }
- dec %massing
- }
- mode $chan %prefix %mass1 | unset %mass1
- }
- else { echo -a *** Error you're not an op on $chan *** }
- }
- }
- if ($1 == .massdo) {
- alias mass {
- if ($me isop $chan) {
- if (deop isin -odeop) { set %prefix $+(-,$str(o,$modespl)) }
- :start
- set %massing $nick($chan,0)
- while (%massing) {
- if ($nick($chan,%massing) != $me) { set %mass1 %mass1 $nick($chan,%massing) }
- if ($gettok(%mass1,0,32) = $modespl) { mode $chan %prefix %mass1 | unset %mass1 }
- dec %massing
- }
- mode $chan %prefix %mass1 | unset %mass1
- }
- else { echo -a *** Error you're not an op on $chan *** }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement