Channel mode shortcut, kickers, ect.(updated)

By Soubi on Jul 04, 2010

This is a simple snippet, it contains setting, and unsetting of the channel modes. It tuns xOP on or off, enables the autovoice for a room, addes users to the access list using the xOP system when it is on, or off, delets them as well. It has user modes(such as oping and deoping ect.) and akicks. It also has kicks( such as pm kick, troll kick, ect.) so you dont always have to type it out. Also look through the script..see where everything is.. :)

This is my first snippet, you may tell me what you think..if i should change anything..just leave a comment...im open to what the pros have to say. ^-^ you may also rearrange it if you like, add or del things.

^-^ enjoy.

I learned how to use the checks, thanks to Snoofing, so i give him credit, with the miNK mode, i can get it to set, but not unset, you may leave that in, or take it out, with the modes +L and +l: you must put the channel in again, to unset it, and the user limit again, to unset it, it doesnt have to be the same as the one you set, it just needs something put it, to unset the mode, i can figure out the problem, i asked a friend of mine that is a good scripter, but it failed even worse, so i left it. -_- :) Hope this one is better organized then the regular version 1.0. :)

; /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
; /\/\/\/\/\/\/Script Made By Soubi/\/\/\/\/\/\/\
; /\/\/Channel modes, akick, user modes, ect./\/\
; /\/\/\/\/\/\Version 1.5(updated);/\/\/\/\/\/\/\
; /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

menu channel {
  .Channel Modes
  ..[ $+ $+($iif(Q isincs $chan(#).mode,-,+),Q) $+ ]{peach mode}: mode # $+($iif(Q isincs $chan(#).mode,-,+),Q)
  ..[ $+ $+($iif(G isincs $chan(#).mode,-,+),G) $+ ]{bad word filter}: mode # $+($iif(G isincs $chan(#).mode,-,+),G)
  ..[ $+ $+($iif(i isincs $chan(#).mode,-,+),i) $+ ]{invite only}: mode # $+($iif(i isincs $chan(#).mode,-,+),i)
  ..[ $+ $+($iif(L isincs $chan(#).mode,-,+),L) $+ ]{channel link}: var %m = $$?="Enter Channel To Link" | mode # $+($iif(L isincs $chan(#).mode,-,+),L %m)
  ..[ $+ $+($iif(m isincs $chan(#).mode,-,+),m) $+ ]{moderated}: mode # $+($iif(m isincs $chan(#).mode,-,+),m)
  ..[ $+ $+($iif(M isincs $chan(#).mode,-,+),M) $+ ]{Must have registered nick to talk}: mode # $+($iif(M isincs $chan(#).mode,-,+),M)
  ..[ $+ $+($iif(s isincs $chan(#).mode,-,+),s) $+ ]{secret channel}: mode # $+($iif(s isincs $chan(#).mode,-,+),s)
  ..[ $+ $+($iif(p isincs $chan(#).mode,-,+),p) $+ ]{private channel}: mode # $+($iif(p isincs $chan(#).mode,-,+),p)
  ..[ $+ $+($iif(N isincs $chan(#).mode,-,+),N) $+ ]{No nick changes}: mode # $+($iif(N isincs $chan(#).mode,-,+),N)
  ..[ $+ $+($iif(l isincs $chan(#).mode,-,+),l) $+ ]{channel limit}: var %cl = $$?="Number of users for limit" | mode # $+($iif(l isincs $chan(#).mode,-,+),l %cl)
  ..[ $+ $+($iif(V isincs $chan(#).mode,-,+),V) $+ ]{no invites allowed}: mode # $+($iif(V isincs $chan(#).mode,-,+),V)
  ..[ $+ $+($iif(c isincs $chan(#).mode,-,+),c) $+ ]{Block msgs containing mIRC color codes}: mode # $+($iif(c isincs $chan(#).mode,-,+),c)
  ..[ $+ $+($iif(S isincs $chan(#).mode,-,+),S) $+ ]{Strips all msgs contianing mIRC color codes}: mode # $+($iif(S isincs $chan(#).mode,-,+),S)
  ..[ $+ $+($iif(K isincs $chan(#).mode,-,+),K) $+ ]{Knocks are not allowed in the channel [needs +i set to work]}: mode # $+($iif(K isincs $chan(#).mode,-,+),K)
  ..[ $+ $+($iif(R isincs $chan(#).mode,-,+),R) $+ ]{Registered nicks may only join the channel}: mode # $+($iif(R isincs $chan(#).mode,-,+),R)
  ..[ $+ $+($iif(T isincs $chan(#).mode,-,+),T) $+ ]{No notices allowed in the channel}: mode # $+($iif(T isincs $chan(#).mode,-,+),T)
  ..[ $+ $+($iif(u isincs $chan(#).mode,-,+),u) $+ ]{Auditorium mode}: mode # $+($iif(u isincs $chan(#).mode,-,+),u)
  ..[ $+ $+($iif(t isincs $chan(#).mode,-,+),t) $+ ]{Only ( +hoaq) can change topic}: mode # $+($iif(t isincs $chan(#).mode,-,+),t)
  ..[ $+ $+($iif(z isincs $chan(#).mode,-,+),z) $+ ]{Secure Connection Only in channel}: mode # $+($iif(z isincs $chan(#).mode,-,+),z)
  ..[autovoice]{to set autovoice on, and requires channel founder}: cs set $chan xop off | msg chanserv levels $chan set autovoice -1  
}

menu status,channel,query {
  .Memos{read/del/send/list}
  ..Memo list: msg memoserv list
  ..Read Memo: var %mr = $$?="Memo number to read" | msg memoserv read %mr
  ..Del Memo: var %md = $$?="Memo number to del" | msg memoserv del %md
  ..Send Memo: var %ms = $$?="Enter msg you want to send", %sn = $$?="Enter nick you want to send to" | msg memoserv send %sn %ms
}
menu channel {
  .xOP[on/off]
  ..[on]: cs set $chan xOP on 
  ..[off]: cs set $chan xOP off 
}
menu channel {
  .Access List
  .[when xOP is off]
  ..Add: var %a = $$?="Enter nick that you want to add", %c = $$?="Enter Access number for nick" | cs access $chan add %a %c 
  ..Del: var %b = $$?="Enter nick you want to delete off of access list" | cs access $chan del %b 
  ..Clear  List: cs access $chan clear 
  ..Access List: cs access $chan list
  .[when xOP is on] 
  ..Add: var %nn = $$?="Enter nick that you want to add", %u = $$?="Enter access status {hop,aop,sop}" | cs %u $chan add %nn 
  ..Del: var %an = $$?="Enter nick you want to delete off of the access list", %u = $$?="Enter access status {hop,aop,sop}" | cs %u  $chan del %an  
..Clear list: cs access $chan list clear
  ..Access list: cs access $chan list
}

menu channel {
  .Akick[list/clear/add/del] 
  ..Clear: cs akick $chan clear 
  ..List: cs akick $chan list 
  ..Add User: var %r = $$?="Enter nick for Akick", %n = $$?="Reason for akick" | cs akick $chan add %r %n 
  ..Del User: var %p = $$?="Enter Nick that is akicked" | cs akick $chan del %p 
}

menu nicklist { 
  .User modes/akick 
  ..Op user: mode $chan +o $$1 
  ..Deop user: mode $chan -o $$1
  ..Halfop user: mode $chan +h $$1 
  ..DeHalfop user: mode $chan -h $$1
  ..Ban User: mode $chan +b $address($$1,1)
  ..kick User: var %o = $$?="Enter Reason for kick" | kick $chan $$1 %o
  ..kick/ban user: var %q = $$?="Enter Reason for kick/ban" | mode $chan +b $address($$1,1) | kick $chan $$1 %q
  ..Voice user: mode $chan +vvvvvvvvvvvvvvv $$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15
  ..DeVoice user: mode $chan -vvvvvvvvvvvvvvv $$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 
  ..Protect User[requires channel owner]: mode $chan +aaaa $$1 $2 $3 $4
  ..DeProtect User[requires channel owner]: mode $chan -aaaa $$1 $2 $3 $4
  ..Add user to invite list: mode $chan +III $address($1,4) $address($2,4) $address($3,4)
  ..Add user to except list: mode $chan +eee $address($1,4) $address($2,4) $address($3,4) 
  ..Mute user ( $+ $$1 $+ ): { var %mute.min = $$?="How many minutes would you like to mute $$1 for?"
    notice $$1 $$1 $+ , you have been muted for %mute.min minutes $+ $iif(%mute.min > 1,s) by $me $+ . stfu a min would ya.
    .timer 1 1 /mode $active -v+b $1 ~q: $+ $mask($address($$1,1),2)
    .timer 1 $calc(%mute.min * 60) /mode $active +v-b $1 ~q: $+ $mask($address($$1,1),2)
  }
} 

menu nicklist {  
  Kicks/bans 
  .English[kick]: kick $chan $$1 Attention: 4 $chan is an English speaking only room 12 Type /list , and find the channel that best suits you :) ] 
  .Pm[kick]: kick $chan $$1 12Attention: 4 Please ask before you enter a pm!
  .Pm[ban]: ban $chan $$1 | kick $chan $$1 12Attention: 4Please ask before you enter a pm, you have been warned once before! 
  .troll[kick]: kick $chan $$1 12Attention: 4 $chan is 12NOT 4 a pick-up room, please stop trolling(asking for guys/girls)!
  .troll[ban]: ban $chan $$1 | kick $chan $$1 12Attention: 4 $chan is 12NOT 4 a pick-up room, please stop trolling(asking for guys/girls)! 
  .respect[kick]: kick $chan $$1 12Attention: 4Please respect all chatters and ops in this room! 
  .respect[ban]: ban $chan $address($$1,2) | kick $chan $$1 12Attention: 4Please respect all chatters and ops in this room! 
  .spam[kick]: kick $chan $$1 12Attention: 4Stop Spamming
  .spam[ban]: ban $chan $address($$1,2) | kick $chan $$1 12Attention: 4 Stop Spamming 
  .racism[kick]: kick $chan $1 12Attention: 4 Racism is not wanted in $chan , please take it else where.
  .racism[ban]: ban $chan $address($$1,2) | kick $chan $1 12Attention: 4Racism is not wanted in $chan , please take it else where.
  .e-harmany[kick]: kick $chan $1 Lets try http://www.eharmony.com/?pcrid=325551497&keyword=eharmony , shall we?
  .e-harmany[ban]: ban $chan $$1 | kick $chan $1 Lets try http://www.eharmony.com/?pcrid=325551497&keyword=eharmony instead of here shall we?
} 

Comments

Sign in to comment.
DevAkim   -  Oct 11, 2010

Awesome, I use it all the time. :D

 Respond  
K33D4Y   -  Jul 06, 2010

Whoop Looks good to me >:D

 Respond  
Soubi   -  Jul 05, 2010

and i was meaning to put a mute command for a user as well, but i will figure that out later, bc i wish to set a timer on it that you can input, instead of having it in the code :D

 Respond  
Soubi   -  Jul 05, 2010

ty my friend :D..but those 3 things are bothering me..it works..but not the way i want it to >.<

 Respond  
K33D4Y   -  Jul 05, 2010

Good Fix :D

 Respond  
Soubi   -  Jul 05, 2010

And thank you again Spoofing for showing me that, i did change it, but i have a problem with the +,-L, +,-l, and the miNK modes, they are giving me..a tad bit of trouble. -_-

 Respond  
K33D4Y   -  Jul 04, 2010

nice xD

 Respond  
Soubi   -  Jul 04, 2010

^-^ thank you..i am very new at this, and i will remember that, thank you for that.

 Respond  
Spoofing   -  Jul 04, 2010

Description for modes - thats cool.

About channel modes, - you can make checks:

  .Channel Modes
  ..[ $+ $+($iif(Q isincs $chan(#).mode,-,+),Q) $+ ]{peach mode}: mode # $+($iif(Q isincs $chan(#).mode,-,+),Q)
  ..[ $+ $+($iif(G isincs $chan(#).mode,-,+),G) $+ ]{bad word filter}: mode # $+($iif(G isincs $chan(#).mode,-,+),G)

etc.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.