#Shax@Quakenet.org

Home­FAQ­Search­Memberlist­Usergroups­Register­Log in
Post new topic   Reply to topicShare | 
 

 blacklist system ^^

View previous topic View next topic Go down 
AuthorMessage
capurro



Posts: 8
Join date: 2008-12-14
Age: 19
Location: TÜRKEY C*

PostSubject: blacklist system ^^   Tue Dec 23, 2008 6:43 pm

In this script you'll find two new things: $staff and $logo. The default $logo is given, but you can customize that yourself easily. You'll need to edit $staff and enter in your staff channel.(Assuming you have one.)

Commands:
!blc #channel
!bln nick
!deblc #chan
!debln nick
!bcc nick/#chan

!bcc will check if a user/channel is blacklisted.


[code:1]
Alias -l staff return #
alias -l logo return [ $+ $1- $+ ]
ON *:TEXT:!blc*:#: {
if ($me != $main && $main ison #) { halt }
if ($nick !isop $staff) {
notice $nick $logo(Error: This is for admin use only!)
halt
}
if ($nick isop $staff) {
if (!$2) {
var %blchan = #
}
if ($2) {
var %blchan = $2
}
if ($left(%blchan,1) != $chr(35)) {
notice $nick $Logo(Error: %blchan isn't a channel.)
halt
}
if (%bl.chan. [ $+ [ %blchan ] ]) {
notice $nick $logo(Error: %blchan has already been blacklisted!)
halt
}
set %bl.chan. [ $+ [ %blchan ] ] Yes
notice $nick $logo(BlackList: %blchan has been blacklisted.)
part %blchan Your channel has been blacklisted. Join #Swoot for information.
msg $staff $logo(Blacklist: %blchan has been blacklisted.)
}
}
ON *:TEXT:!bln*:#: {
if ($me != $main && $main ison #) { halt }
if ($nick !isop $staff) {
notice $nick $logo(Error: This is for admin use only!)
halt
}
if ($nick isop $staff) {
if (!$2) {
notice $nick $logo(Error: Enter a nick!)
halt
}
if ($2) {
var %blnick = $2
}
if (%bl.nick. [ $+ [ $address(%blnick,2) ] ]) {
notice $nick $logo(Error: %blnick has already been blacklisted!)
halt
}
set %bl.nick. [ $+ [ $address(%blnick,2) ] ] Yes
notice $nick $logo(BlackList: %blnick has been blacklisted.)
msg $staff $logo(Blacklist: %blnick has been blacklisted.)
}
}
ON *:TEXT:!bcc*:#: {
if ($me != $main && $main ison #) { halt }
if ($nick !isop $staff) {
notice $nick $logo(Error: This is for admin use only!)
halt
}
if ($nick isop $staff) {
if (!$2) {
notice $nick $logo(Error: Enter a search!)
halt
}
if ($2) {
var %blcheck = $2
}
if ($left(%blcheck,1) = $chr(35)) {
if (%bl.chan. [ $+ [ %blcheck ] ]) {
notice $nick $logo(Blacklist: %blcheck is blacklisted.)
halt
}
if (!%bl.chan. [ $+ [ %blcheck ] ]) {
notice $nick $logo(Blacklist: %blcheck is not blacklisted.)
halt
}
}
if (!$address(%blcheck,2)) {
notice $nick $logo(Blacklist: That user is not online.)
halt
}
if (%bl.nick. [ $+ [ $address(%blcheck,2) ] ]) {
notice $nick $logo(Blacklist: %blcheck is currently blacklisted.)
halt
}
if (!%bl.nick. [ $+ [ $address(%blcheck,2) ] ]) {
notice $nick $logo(Blacklist: %blcheck is not currently blacklisted.)
halt
}
}
}
ON *:TEXT:!deblc*:#: {
if ($me != $main && $main ison #) { halt }
if ($nick !isop $staff) {
notice $nick $logo(Error: This is for admin use only!)
halt
}
if ($nick isop $staff) {
if (!$2) {
notice $nick $logo(Error: Enter a channel!)
halt
}
if ($2) {
var %blchan = $2
}
if ($left(%blchan,1) != $chr(35)) {
notice $nick $Logo(Error: %blchan isn't a channel.)
halt
}
if (!%bl.chan. [ $+ [ %blchan ] ]) {
notice $nick $logo(Error: %blchan is not blacklisted.)
halt
}
unset %bl.chan. [ $+ [ %blchan ] ]
notice $nick $logo(BlackList: %blchan has been unblacklisted.)
msg $staff $logo(Blacklist: %blchan has been unblacklisted.)
}
}
ON *:TEXT:!debln*:#: {
if ($me != $main && $main ison #) { halt }
if ($nick !isop $staff) {
notice $nick $logo(Error: This is for admin use only!)
halt
}
if ($nick isop $staff) {
if (!$2) {
notice $nick $logo(Error: Enter a nick!)
halt
}
if ($2) {
var %blnick = $2
}
if (!%bl.nick. [ $+ [ $address(%blnick,2) ] ]) {
notice $nick $logo(Error: %blnick is not blacklisted!)
halt
}
unset %bl.nick. [ $+ [ $address(%blnick,2) ] ]
notice $nick $logo(BlackList: %blnick has been unblacklisted.)
msg $staff $logo(Blacklist: %blnick has been unblacklisted.)
}
}



+love me pls cheers
Back to top Go down
View user profile http://www.capurro.tk
 

blacklist system ^^

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You cannot reply to topics in this forum
#Shax@Quakenet.org :: MSL-
Post new topic   Reply to topic