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
Open
carlos4jo
Member #9,272
vexation
Member #331
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
Edited Mar 14, 2005 11:45 PM by vexation
Luky¬
Member #1,700
#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
Cleric xtx
Member #95
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 } }
Edited Mar 15, 2005 1:22 AM by Cleric xtx
The Gate Keeper
Member #47
chain
Member #797
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
Edited Mar 15, 2005 6:46 AM by chain
carlos4jo
Member #9,272
#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?
Cleric xtx
Member #95
jesse
Member #7,486
Want to join the discussion?
Sign In
Sign in to reply or start a new topic where your account has permission.
.png.a22ae68f9e2a01349c010b55164b5084.png)