Skip to content
MSN Addons

addy kick

A TG007 community discussion started by carlos4jo.

Discussion 9 posts
Page 1 of 1
Open
Topic #3108 · 9 published posts · 840 views

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

Edited Mar 14, 2005 11:45 PM by vexation

bfush.PNG

#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 } }

Edited Mar 15, 2005 1:22 AM by Cleric xtx

 

yes it would be easier that way but not everyone knows how to use regex, i still donno how to use it and i've gone over the tutorial.

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

______________________________________________________

T.ogether
E.veryone
A.chieves
M.ore


 

 

coderirclogo.png.8580c336378f27471a13a95ffd242c9d (1).png

#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?

A lot smaller & simpler