TravisT

TravisT

Joined
Jan 03, 2009
Location
Seattle, WA

Activity Stream

TravisT commented on a Page, Bot COntrol Snippet  -  Jan 07, 2011

Why set a variable named %repeat?

 Respond  
TravisT commented on a Page, F-Keys Alias  -  Nov 20, 2010

From my experience it is dicey using pipes without enclosing them in brackets. Granted these are simple aliases, but just for the future, I suggest using brackets if you use pipes.

Don't give up just cuz these guys don;t like it. Do you what you love and screw the haters. :)

 Respond  
TravisT commented on a Page, Amsg Over Servers  -  Nov 03, 2009

scid or scon is the same. Scid depends on the actual connection id, while scon refers to the Nth connection.

Oh I thought this was an ame snippet.

Desh, to message one channel use.

/msg # Message

 Respond  
TravisT commented on a Page, Amsg Over Servers  -  Nov 03, 2009

describe # Message

this will send action text to the channel.

As for the snippet, can't you do the same with:

/scid -a ame Message

 Respond  
TravisT commented on a Page, Word Kicker  -  Oct 19, 2009

Hahah yeah I dont like cuss kickers, it was a request. Thanks

 Respond  
TravisT created a Page  -  Oct 17, 2009
1 718 

Pick words or text strings to kick for. Performs wildcard searches on text and away events for words.

TravisT commented on a Page, mIRC Services Scripts  -  Oct 02, 2009

If you were to do as you two suggest you would have an error since it is not in a menu bracket.

 Respond  
TravisT commented on a Page, mIRC Services Scripts  -  Oct 02, 2009

I know how to write popup menus. I'm just pointing out an issue with the directions.

 Respond  
TravisT commented on a Page, mIRC Services Scripts  -  Oct 02, 2009

Where to Put Script
Tools > Scripts Editor > Popups
View > Nick List
Place it there.

This is for the nicklist?

 Respond  
TravisT commented on a Page, identify auto join  -  Sep 10, 2009

yeah thanks, learned something new. :)

 Respond  
TravisT commented on a Page, identify auto join  -  Jul 21, 2009

$$?

I've never seen the # used here. What is the expected result of having # proceed the "$$?"
?

 Respond  
TravisT commented on a Page, Blind Bot  -  Jun 29, 2009

You mean you didnt test it? Just threw it out there?

I can understand leaving it up to us to add user levels I guess, but you should really have flood protection unless you want to flood out your script.

Also, take a look at 'elseif'.

 Respond  
TravisT commented on a Page, Hop/part all channels v1.0  -  Jun 27, 2009

You may be interested in the /scid -a command...

/scid -a /partall

 Respond  
TravisT commented on a Page, Random JOIN message  -  Jun 13, 2009

This snippet needs the text file included.

Blitzz, the reason is that /pvoice will not give +v if they already have it or have left the room.

 Respond  
TravisT commented on a Page, Welcome to chan!  -  Jun 12, 2009

lol their credit to themselves is bigger than the actual script. >.>

 Respond  
TravisT commented on a Page, Website kick  -  Jun 12, 2009

The . silences the command so there is no echo in the status window. It is not a text command.

Anyways, check this out. Same script jut written ... correctly?

on @$:TEXT:/(www\56|\57\57\56|\72\57\57|\43[a-zA-Z]www..com | www..org | www..net | www..tv | www..co.uk | www..biz)/iS::{
if ($nick !isop $chan) {
msg $chan $nick has been kicked due to advertisement
.kick $chan $nick you have been kicked due to advertisement, channel notified.
}
}

 Respond  
TravisT commented on a Page, Text Flood Protection  -  Jan 08, 2009

Not that I suggest using this code but check this out.

on !@:TEXT::#:{
if ($nick isowner #) { Return }
var %text = $hash($strip($1-),32), %old.text = %rp. [ $+ [ $chan ] $+ . $+ [ $nick ] ], %temp, %count | %old.text = $deltok(%old.text,1,46)
if (%rp. [ $+ [ $chan ] $+ . $+ [ $nick ] ] == $null) || (%old.text != %text) { set -u30 %rp. [ $+ [ $chan ] $+ . $+ [ $nick ] ] 1. $+ %text | return }
%temp = %rp. [ $+ [ $chan ] $+ . $+ [ $nick ] ] | %count = $gettok(%temp,1,46) | inc %count | set -u30 %rp. [ $+ [ $chan ] $+ . $+ [ $nick ] ] %count $+ . $+ %text
if (%count >= 3) { .raw access $chan add deny $+(!, $Ial($nick).addr) 1 :Text-Flood | .raw kick # $nick : $+ flooding(gone for 60 seconds) | unset -u10 %rp.* }
}

TravisT commented on a Page, Anti Spam Dialog  -  Jan 08, 2009

No you misunderstand. Your script can be easily flooded out. Any text response should protect itself from a flood. Especially if you use a while loop in it to scan each line of a text file. (Which you shouldn't ever do)

 Respond  
TravisT commented on a Page, INPUT  -  Jan 07, 2009

LEss code is better yes. I was just showing other ways of doing it. Also, look into using elseif in these situations.

If you say:

if ($1 == .m) { command }
if ($1 == .q) { command }
if ($1 == .k) { command }
etc.

Even if it matches .m, which means it won't match any of the others, it will still go through each if statement till it gets to the closing bracket.

if ($1 == .m) { command }
elseif ($1 == .q) { command }
elseif ($1 == .k) { command }

Now this will only check until it gets a match and then it will stop.

 Respond  
TravisT commented on a Page, INPUT  -  Jan 07, 2009

lol, actually $iif is a bit slower than using if.

I was going to suggest not checking the comparison twice.

if (!$2) mode $chan +o $me
else { mode $chan +o $2 }

but safer to say ...

if ($2 ison $chan) { mode $chan +o $2 }
else { mode $chan +o $me }

I, however, prefer the method stated with the regex. One line that handles all modes. :)

on *:input:#:{
if ($1 == .m) { var %m2 = $iif($3 ison $chan,$3,$me) | mode $chan $2 %m2 }
elseif ($1 == .k) && ($2 ison $chan) { kick $chan $2 $3- }
}

example:
.m +v nickname

Does require more to type though.

 Respond  
TravisT commented on a Page, Anti Spam Dialog  -  Jan 07, 2009

Yeah that was my first thought. Better to write down the allowed urls. There are way less allowed urls than urls to kick for. You can't possibly think of all the urls you dont want posted in your room.

Also, I don't think it is wise to do a loop through every line in a text file for every text event.
I also don't see any flood protection. What does this code do during a text flood?

 Respond  
TravisT commented on a Page, Little Join Flood Protection  -  Jan 03, 2009

It isn't +R it is +r. And will only work on networks that use +r.

Use /echo -a $chanmodes to see if your network supports it.

As for ripping, this is a basic flood protection. Who figured it out first? Who knows.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.