i have one but i dont want it to kick the owners or hosts or wen they say my group link if this is possible any help
A TG007 community discussion started by carlos4jo.
i have one but i dont want it to kick the owners or hosts or wen they say my group link if this is possible any help
on *:text:*:#:{
tokenize 32 $strip($1-)
if ((http isin $1-) || (*www.*.???* iswm $1-)) && ($nick !isop $chan) { access $chan add deny $address 0 :dont post that crap :) | kick $chan $nick no links d00d }
}
maybe
#urlkick on
on ^*:TEXT:*.tk*:#:{ if ($nick isop #) return | kick # $nick No advertise please / Identity $mask($fulladdress,1) / Reason: Violation of MSN's Code of Conduct (international) | access # add deny $address($nick,1) 5 | halt }
on ^*:TEXT:*//*:#:{ if ($nick isop #) return | kick # $nick No advertise please / Identity $mask($fulladdress,1) / Reason: Violation of MSN's Code of Conduct (international) | access # add deny $address($nick,1) 5 | halt }
on ^*:TEXT:*www.*:#:{ if ($nick isop #) return | kick # $nick No advertise please / Identity $mask($fulladdress,1) / Reason: Violation of MSN's Code of Conduct (international) | access # add deny $address($nick,1) 5 | halt }
on ^*:TEXT:*.org*:#:{ if ($nick isop #) return | kick # $nick No advertise please / Identity $mask($fulladdress,1) / Reason: Violation of MSN's Code of Conduct (international) | access # add deny $address($nick,1) 5 | halt }
on ^*:TEXT:*.net*:#:{ if ($nick isop #) return | kick # $nick No advertise please / Identity $mask($fulladdress,1) / Reason: Violation of MSN's Code of Conduct (international) | access # add deny $address($nick,1) 5 | halt }
on ^*:TEXT:*.co*:#:{ if ($nick isop #) return | kick # $nick No advertise please / Identity $mask($fulladdress,1) / Reason: Violation of MSN's Code of Conduct (international) | access # add deny $address($nick,1) 5 | halt }
on ^*:ACTION:*.tk*:#:{ if ($nick isop #) return | kick # $nick No advertise please / Identity $mask($fulladdress,1) / Reason: Violation of MSN's Code of Conduct (international) | access # add deny $address($nick,1) 5 | halt }
on ^*:ACTION:*://*:#:{ if ($nick isop #) return | kick # $nick No advertise please / Identity $mask($fulladdress,1) / Reason: Violation of MSN's Code of Conduct (international) | access # add deny $address($nick,1) 5 | halt }
on ^*:ACTION:*www.*:#:{ if ($nick isop #) return | kick # $nick No advertise please / Identity $mask($fulladdress,1) / Reason: Violation of MSN's Code of Conduct (international) | access # add deny $address($nick,1) 5 | halt }
on ^*:ACTION:*.co*:#:{ if ($nick isop #) return | kick # $nick No advertise please / Identity $mask($fulladdress,1) / Reason: Violation of MSN's Code of Conduct (international) | access # add deny $address($nick,1) 5 | halt }
on ^*:ACTION:*.org*:#:{ if ($nick isop #) return | kick # $nick No advertise please / Identity $mask($fulladdress,1) / Reason: Violation of MSN's Code of Conduct (international) | access # add deny $address($nick,1) 5 | halt }
on ^*:ACTION:*.net*:#:{ if ($nick isop #) return | kick # $nick No advertise please / Identity $mask($fulladdress,1) / Reason: Violation of MSN's Code of Conduct (international) | access # add deny $address($nick,1) 5 | halt }
#urlkick end
Wouldn't it be easier to use a regular expression?
Emails: $regex($1-,/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$)
URLs: $regex($1-,/^\w+([\.-]?\w+)*\.\w+([\.-]?\w+)*(\.\w{2,3})+$)
on *:text:*:#:{ if (regex => 1) { action } }
on *:TEXT:www.*:#: {
if ($nick isowner #) {
.halt
}
else {
/access # add deny
/kick # $nick: Only Owners may Post links here
/set %reasons Spamming links
}
}
on *:TEXT:Http//*:#: {
if ($nick isowner #) {
.halt
}
else {
/access # add deny
/kick # $nick: Only Owners may Post links here
/set %reasons Spamming links
}
}
on *:TEXT:*.com:#: {
if ($nick isowner #) {
.halt
}
else {
/access # add deny
/kick # $nick: Only Owners may Post links here
/set %reasons Spamming links
}
}
on *:TEXT:*@hotmail:#: {
if ($nick isowner #) {
.halt
}
else {
/kick # $nick: U shouldnt spam your email in rooms
/set %reasons Spamming email
}
}
on *:TEXT:*@msn.com:#: {
if ($nick isowner #) {
.halt
}
else {
/kick # $nick: U shouldnt spam your email in rooms
/set %reasons Spamming email
}
}
on *:TEXT:*@microsoft.com:#: {
if ($nick isowner #) {
.halt
}
else {
/kick # $nick: U shouldnt spam your email in rooms
/set %reasons Spamming email
}
}
I like the old style of adkick Mind you I code like a dinosaur in that yr of age
#urlkick on
on ^*:TEXT:*.tk*:#:{ if ($nick isop #) return | kick # $nick No advertise please / Identity $mask($fulladdress,1) / Reason: Violation of MSN's Code of Conduct (international) | access # add deny $address($nick,1) 5 | halt }
on ^*:TEXT:*//*:#:{ if ($nick isop #) return | kick # $nick No advertise please / Identity $mask($fulladdress,1) / Reason: Violation of MSN's Code of Conduct (international) | access # add deny $address($nick,1) 5 | halt }
on ^*:TEXT:*www.*:#:{ if ($nick isop #) return | kick # $nick No advertise please / Identity $mask($fulladdress,1) / Reason: Violation of MSN's Code of Conduct (international) | access # add deny $address($nick,1) 5 | halt }
on ^*:TEXT:*.org*:#:{ if ($nick isop #) return | kick # $nick No advertise please / Identity $mask($fulladdress,1) / Reason: Violation of MSN's Code of Conduct (international) | access # add deny $address($nick,1) 5 | halt }
on ^*:TEXT:*.net*:#:{ if ($nick isop #) return | kick # $nick No advertise please / Identity $mask($fulladdress,1) / Reason: Violation of MSN's Code of Conduct (international) | access # add deny $address($nick,1) 5 | halt }
on ^*:TEXT:*.co*:#:{ if ($nick isop #) return | kick # $nick No advertise please / Identity $mask($fulladdress,1) / Reason: Violation of MSN's Code of Conduct (international) | access # add deny $address($nick,1) 5 | halt }
on ^*:ACTION:*.tk*:#:{ if ($nick isop #) return | kick # $nick No advertise please / Identity $mask($fulladdress,1) / Reason: Violation of MSN's Code of Conduct (international) | access # add deny $address($nick,1) 5 | halt }
on ^*:ACTION:*://*:#:{ if ($nick isop #) return | kick # $nick No advertise please / Identity $mask($fulladdress,1) / Reason: Violation of MSN's Code of Conduct (international) | access # add deny $address($nick,1) 5 | halt }
on ^*:ACTION:*www.*:#:{ if ($nick isop #) return | kick # $nick No advertise please / Identity $mask($fulladdress,1) / Reason: Violation of MSN's Code of Conduct (international) | access # add deny $address($nick,1) 5 | halt }
on ^*:ACTION:*.co*:#:{ if ($nick isop #) return | kick # $nick No advertise please / Identity $mask($fulladdress,1) / Reason: Violation of MSN's Code of Conduct (international) | access # add deny $address($nick,1) 5 | halt }
on ^*:ACTION:*.org*:#:{ if ($nick isop #) return | kick # $nick No advertise please / Identity $mask($fulladdress,1) / Reason: Violation of MSN's Code of Conduct (international) | access # add deny $address($nick,1) 5 | halt }
on ^*:ACTION:*.net*:#:{ if ($nick isop #) return | kick # $nick No advertise please / Identity $mask($fulladdress,1) / Reason: Violation of MSN's Code of Conduct (international) | access # add deny $address($nick,1) 5 | halt }
#urlkick end
Thanks for this code it works great but is there a way that if someone sends the link to my chatroom it doesnt kick them aswell?
Sign in to reply or start a new topic where your account has permission.