Skip to content
Buzzen Chat Network

Need Halts In That Code

A TG007 community discussion started by RashedHammad.

Discussion 28 posts
Page 1 of 2
Open
Topic #12905 · 28 published posts · 5,676 views

#ad on 
on *:TEXT:*http*:#:{ if ($nick isowner #) halt { if ($nick isop #) halt | MODE $Me +h $Hget(qKey, $Active) | auser Advertiser $address($nick,1) $Buzz.decode($replace($nick,>,Guest_)) | write -1 Advertisers.txt $1- [- was the cause of the kick and $replace($nick,>,Guest_) was the users name in chatroom $chan -] | kick # $nick :-][ Don't poste any links here ][ 30 Minutes Ban ][- | access # add deny $nick 30  } } 
on *:ACTION:*http*:#:{ if ($nick isowner #) halt { if ($nick isop #) halt |MODE $Me +h $Hget(qKey, $Active) | auser Advertiser $address($nick,1) $Buzz.decode($replace($nick,>,Guest_)) | write -1 Advertisers.txt $1- [- was the cause of the kick and $replace($nick,>,Guest_) was the users name in chatroom $chan -] | kick # $nick :-][ Don't poste any links here ][ 30 Minutes Ban ][- | access # add deny $nick 30  } } 
on *:TEXT:*www.*:#:{ if ($nick isowner #) halt { if ($nick isop #) halt | MODE $Me +h $Hget(qKey, $Active) | auser Advertiser $address($nick,1) $Buzz.decode($replace($nick,>,Guest_)) | write -l Advertisers.txt $1- [- was the cause of the kick and $replace($nick,>,Guest_) was the users name in chatroom $chan -] | kick # $nick :-][ Don't poste any links here ][ 30 Minutes Ban ][- | access # add deny $nick 30   } } 
on *:ACTION:*www.*:#:{ if ($nick isowner #) halt { if ($nick isop #) halt | MODE $Me +h $Hget(qKey, $Active) | auser Advertiser $address($nick,1) $Buzz.decode($replace($nick,>,Guest_)) | write -l Advertisers.txt $1- [- was the cause of the kick and $replace($nick,>,Guest_) was the users name in chatroom $chan -] | kick # $nick :-][ Don't poste any links here ][ 30 Minutes Ban ][- | access # add deny $nick 30   } } 
on *:TEXT:*chat.msn*:#:{ if ($nick isowner #) halt { if ($nick isop #) halt | MODE $Me +h $Hget(qKey, $Active) | auser Advertiser $address($nick,1) $Buzz.decode($replace($nick,>,Guest_)) | write -l Advertisers.txt $1- [- was the cause of the kick and $replace($nick,>,Guest_) was the users name in chatroom $chan -] | kick # $nick :-][ Don't poste any links here ][ 30 Minutes Ban ][- | access # add deny $nick 30   } } 
on *:ACTION:*chat.msn*:#:{ if ($nick isowner #) halt { if ($nick isop #) halt | mode $me +h $hget(ownerkey,#) | auser Advertiser $address($nick,1) $Buzz.decode($replace($nick,>,Guest_)) | write -l Advertisers.txt $1- [- was the cause of the kick and $replace($nick,>,Guest_) was the users name in chatroom $chan -] | kick # $nick :-][ Don't poste any links here ][ 30 Minutes Ban ][- | access # add deny $nick 30   } } 
on *:TEXT:*http*:?:{ if ($nick isowner $active) halt { if ($nick isop $active) halt | MODE $Me +h $Hget(qKey, $Active) | auser Advertiser $address($nick,1) $Buzz.decode($replace($nick,>,Guest_)) | write -1 Advertisers.txt $1- [- was the cause of the kick and $replace($nick,>,Guest_) was the users name in chatroom $chan -] | kick $active $nick :-][ Don't poste any links here ][ 30 Minutes Ban ][- | access $active add deny $nick 30   } } 
on *:ACTION:*http*:?:{ if ($nick isowner $active) halt { if ($nick isop $active) halt | MODE $Me +h $Hget(qKey, $Active) | auser Advertiser $address($nick,1) $Buzz.decode($replace($nick,>,Guest_)) | write -1 Advertisers.txt $1- [- was the cause of the kick and $replace($nick,>,Guest_) was the users name in chatroom $chan -] | kick $active $nick :-][ Don't poste any links here ][ 30 Minutes Ban ][- | access $active add deny $nick 30   } } 
on *:TEXT:*www.*:?:{ if ($nick isowner $active) halt { if ($nick isop $active) halt | MODE $Me +h $Hget(qKey, $Active) | auser Advertiser $address($nick,1) $Buzz.decode($replace($nick,>,Guest_)) | write -l Advertisers.txt $1- [- was the cause of the kick and $replace($nick,>,Guest_) was the users name in chatroom $chan -] | kick $active $nick :-][ Don't poste any links here ][ 30 Minutes Ban ][- | access $active add deny $nick 30   } } 
on *:ACTION:*www.*:?:{ if ($nick isowner $active) halt { if ($nick isop $active) halt | MODE $Me +h $Hget(qKey, $Active) | auser Advertiser $address($nick,1) $Buzz.decode($replace($nick,>,Guest_)) | write -l Advertisers.txt $1- [- was the cause of the kick and $replace($nick,>,Guest_) was the users name in chatroom $chan -] | kick $active $nick :-][ Don't poste any links here ][ 30 Minutes Ban ][- | access $active add deny $nick 30   } } 
on *:TEXT:*chat.msn*:?:{ if ($nick isowner $active) halt { if ($nick isop $active) halt | MODE $Me +h $Hget(qKey, $Active) | auser Advertiser $address($nick,1) $Buzz.decode($replace($nick,>,Guest_)) | write -l Advertisers.txt $1- [- was the cause of the kick and $replace($nick,>,Guest_) was the users name in chatroom $chan -] | kick $active $nick :-][ Don't poste any links here ][ 30 Minutes Ban ][- | access $active add deny $nick 30   } } 
on *:ACTION:*chat.msn*:?:{ if ($nick isowner $active) halt { if ($nick isop $active) halt | MODE $Me +h $Hget(qKey, $Active) | auser Advertiser $address($nick,1) $Buzz.decode($replace($nick,>,Guest_)) | write -l Advertisers.txt $1- [- was the cause of the kick and $replace($nick,>,Guest_) was the users name in chatroom $chan -] | kick $active $nick :-][ Don't poste any links here ][ 30 Minutes Ban ][- | access $active add deny $nick 30   } } 
#add end

 

 

Need halt to my levels admin and host also for owners and so on

also i dont want to add the user as advertizer becuase it removes his original level

hope u help me soon.

 

About my levels

 

Admin = Level7

Owner = Level4

Host = Level2

 

And this is the way they r added *!*b56c0125c@BuzzenPassport

 

 

 

 

That's is an overkill of utilizing on text event. Regex works best for this sort of spam kicking operation. If you must use them, you should use the if-then-else statement instead.

Edited Jun 4, 2009 11:02 AM by Fanfare

Ok i need the code , Waiting u err0r My friend :yes:

I agree with fanfare. There are much better methods for doing that. using regex and hash would be a good way. But to answer your question a easy way would be to put in a halt if the level matches those you have.

 

if (Admin isin $level($address($nick,1))) || (Owner isin $level($address($nick,1))) || (Host isin $level($address($nick,1))) halt

 

 

The way you are doing it would equal something like this

 

on *:TEXT:*http*:#:{ 
if (Admin isin $level($address($nick,1))) || (Owner isin $level($address($nick,1))) || (Host isin $level($address($nick,1))) || ($nick isop #) halt
MODE $Me +h $Hget(qKey, $Active) | auser Advertiser $address($nick,1) $Buzz.decode($replace($nick,>,Guest_)) | write -1 Advertisers.txt $1- [- was the cause of the kick and $replace($nick,>,Guest_) was the users name in chatroom $chan -] | kick # $nick :-][ Don't poste any links here ][ 30 Minutes Ban ][- | access # add deny $nick 30  }

 

 

Again your method is really not the best way but as you are learning it will work. A few things to mention. isowner isn't really a valid status outside of msn and unless the alias is coded into the script it's useless. Using a decode for nicknames is also unneeded if you are using the latest version of mIRC as it supports unicode in the windows.

Edited Jun 4, 2009 11:14 AM by err0r

Get information about ircWx here

ok put another code if there

This uses regex to check for links

;alias snippet by h3lp
alias deurl return $null($regex($1-,/(((http(s)?\72(\57{2}))|(www\56{1}))+(\w*)+(\56{1})+(\w{2,3})\S*)/Sig)) $regml(1)
on *:TEXT:*:#: {
if ($nick == $me) || (Admin isin $level($address($nick,1))) || (Owner isin $level($address($nick,1))) || (Host isin $level($address($nick,1))) || ($nick isop #) halt
  if ($deurl($1-)) {
    /access $chan add deny $address($nick,1) 1 : NO URL $replace($nick,>,Guest_) added by $replace($me,>,Guest_) at $date @ $asctime(hh:nn:ss)
    /kick $chan $nick No Links(ban set for 1 min)
  }
}
on *:ACTION:*:#: {
if ($nick == $me) || (Admin isin $level($address($nick,1))) || (Owner isin $level($address($nick,1))) || (Host isin $level($address($nick,1))) || ($nick isop #) halt
  if ($deurl($1-)) {
    /access $chan add deny $address($nick,1) 1 : NO URL $replace($nick,>,Guest_) added by $replace($me,>,Guest_) at $date @ $asctime(hh:nn:ss)
    /kick $chan $nick No Links(ban set for 1 min)
  }
}

 

 

if you aren't much for regex then just use http and www. that will catch most of them

 

on *:TEXT:*:#: {
if ($nick == $me) || (Admin isin $level($address($nick,1))) || (Owner isin $level($address($nick,1))) || (Host isin $level($address($nick,1))) || ($nick isop #) halt
if (http:// isin $1-) || (www. isin $1-) {
    /access $chan add deny $address($nick,1) 1 : NO URL $replace($nick,>,Guest_) added by $replace($me,>,Guest_) at $date @ $asctime(hh:nn:ss)
    /kick $chan $nick No Links(ban set for 1 min)
  }
}
on *:ACTION:*:#: {
if ($nick == $me) || (Admin isin $level($address($nick,1))) || (Owner isin $level($address($nick,1))) || (Host isin $level($address($nick,1))) || ($nick isop #) halt
if (http:// isin $1-) || (www. isin $1-) {
    /access $chan add deny $address($nick,1) 1 : NO URL $replace($nick,>,Guest_) added by $replace($me,>,Guest_) at $date @ $asctime(hh:nn:ss)
    /kick $chan $nick No Links(ban set for 1 min)
  }
}

Edited Jun 4, 2009 12:16 PM by err0r

Get information about ircWx here

Thanks alot works nice

glad we could help

Get information about ircWx here

Atleast make an effort to learn mIRC. It seems like your taking code from other people and conforming it to work with what YOU want. Try to learn and understand what your working with.

this section is for help/request i guess so i can do as i want > help > post acode > need modification

But your making no effort to understand what the code does. You just want people to give you the code. The best help is self help, and learning what was going on is better than people doing it for you.

and if i do't know about coding ,, delete my account from here or what?

please if u don't want to help or dont want to say my words be away from my topics

If you don't know, you learn. That's how we all learned. If your going to be sensitive about things people say to you, it's going to be a long stay here.

thanks , look i know about coding

any code i post here

i try to fix it several times and when i failed i post

there are many one i made my self

but this is the life you can't know all things about one thing , but u can know a thing about every thing

thank u again

 

Special thanks to my patient friend err0r

well im just gona say something here and now about this if you dont know about code try learning if you know about code try coding your own stuff and if all else fails ask for help and theres nothing wrong with that but if you use and moddify others code at least be up front about it and give them credit is all i have to say about it,i know how the system goes i been coding now about 4-6 years may be longer and i have had my fair share of problems and its like err0r has said learning for your self is most important thing in coding,and as for learning if your willing to give it ago we all will be happy to help where we can :)

I think most of us learned through breaking down other ppl's coding and through the repetition of doing it for ourselves. Different ppl learn in different ways. Some aren't really interested in learning at all they just want the code. That's ok too if that's what they want. In the end it's about helping others. You can choose to help them or not to help them. I choose to help

Get information about ircWx here

X, it's his perrogative to do whatever he wants to do. Who are you to judge him? Help him or don't.

 

I don;t want X-Fusion clones running around.

Once again, flapping your jaws without knowing what your talking about.

 

I wasn't judging him, I was attempting to tell him how to learn to code, like those that WERE helping him. He took offense to it, and once again, I told him to try to understand what he's doing. Yeah, forgive me for trying to help someone do something on their own, and not rely on others as a crutch.

 

Shoot me, why don't you. <_<

When you put someone on the defensive there is no help you can offer. They close their minds to you.

You'd be the prime example. :)