funny ACTION reply

By Phil_FW on Feb 07, 2011

This is a simple reply to when somebody does an action (/me) in a channel to you. :D Have fun

on *:action:$($+(*,$me,*)):#:{ 
  msg $chan 11,1Ohhhh9,1 $nick $+ , 8,1do it harder... 7,1harderr.. 4,1HARDERRR!!! 
}

Comments

Sign in to comment.
Phil_FW   -  Feb 08, 2011

lol thnx Heather :P

 Respond  
HeatherChantelle   -  Feb 08, 2011

Phil, you would. This makes me laugh!

 Respond  
Jethro   -  Feb 07, 2011

:P sunslayer, you miss the analogy of "nothing is perfect." Even though one strives hard enough to make something perfect, he or she'll always wind up spending their lifetime looking for perfection that will never fulfill their satisfaction.

 Respond  
sunslayer   -  Feb 07, 2011

Perfect codes don't exist

alias perfect return 1
while ($perfect) { echo Perfect codes do exist }
 Respond  
Jethro   -  Feb 07, 2011

I just want to conclude this subject by saying, and I did mention the regex pattern does minimize the "false positives" LITERALLY, compared to the use of isin, iswm, or $($+(,$me,) or $wildtok (Except for $istok, though, it won't trigger if someone places a common punctuation character next to $me; it's still not ideal), BUT that does NOT mean my example is bulletproof. As a matter of fact, and if you really want to dig into this subject matter of how it gets failed or exploited, a so-called perfect code will still fall into victim. Perfect codes don't exist, so do crimes in the real world, which will never cease to happen. If this was a perfect world we live in, we wouldn't have criminals, hackers..etc..in the first place.

 Respond  
Jethro   -  Feb 07, 2011

Well, a nickname like that is uncommon to me, especially that's considered an invalid or erroneous character to have in a nickname. The networks I've dealt with won't allow it.

 Respond  
_Dean_   -  Feb 07, 2011

i just asked u the same question u asked me,
by the way, if there is nicks like

phil
phil´

both will run the command u know

 Respond  
Jethro   -  Feb 07, 2011

Flood control in this snippet, in my opinion, is un-needed because of its short and simplistic build. Not to mention the user triggering it will be sending just as much traffic as this script.SunnyD, it's better safe than sorry!

 Respond  
Jethro   -  Feb 07, 2011

Sunny, not any punctuation characters, just the ones mentioned. They're the ones used often followed by $me

 Respond  
Jethro   -  Feb 07, 2011

Ok, I didn't expect that sort of fallacy, Dean. You purposely get technical with it, but who would enter an action $me in that fashion? :p

What this pattern does is to not be triggered by any character followed by $me, while allowing the common space, exclamation mark, period, and question mark to go through. :-)

 Respond  
Sorasyn   -  Feb 07, 2011

Jethro_'s trigger matches your name alone with any punctuation following it. Whereas yours matches any occurrence of your name within the string "fcsdPowersadfjb" for example would match if my name was Power.

 Respond  
Phil_FW   -  Feb 07, 2011

doesn't it do the same as mine? except i has FC... and whats this for?

$(/( |^)\Q $+ $me $+ \E(?![^\w\s\!\.\?]$)\b/iS)

doesnt that have the same purpose as what i have?

 Respond  
_Dean_   -  Feb 07, 2011

Jethro_ do u remember that post u said that if someone say the nick with special characters it will call him to?
and u mentioned if someone call &Dean it will run the trigger

but if someone call
Jethro&,Jethro*,Jethro},Jethro´

it will run too...

 Respond  
Jethro   -  Feb 07, 2011

Well, mine will match precisely for $me without false positives literally. If anyone finds any fallacy with that pattern, let me know.

 Respond  
Phil_FW   -  Feb 07, 2011

Jethro_ and his complicated script edits. lol

 Respond  
Jethro   -  Feb 07, 2011

Yup, my bad. lol Replaced it with the action.

 Respond  
_Dean_   -  Feb 07, 2011

i think he wants it on action event...

 Respond  
Jethro   -  Feb 07, 2011

This one is much better if interested:

on $*:action:$(/( |^)\Q $+ $me $+ \E(?![^\w\s\!\.\?]$)\b/iS):#:{
  if !%p { inc -u4 %p
    msg $chan 11,1Ohhhh9,1 $nick $+ , 8,1do it harder... 7,1harderr.. 4,1HARDERRR!!! 
  }
}
 Respond  
Sorasyn   -  Feb 07, 2011

Flood control in this snippet, in my opinion, is un-needed because of its short and simplistic build. Not to mention the user triggering it will be sending just as much traffic as this script.

 Respond  
Phil_FW   -  Feb 07, 2011

well i usually dont get flooded lol, but i suppose i could add FC on the scripts before i add them, i just need to remember what the code for it is. lol isnt FC just vars and if statements?

 Respond  
napa182   -  Feb 07, 2011

you should add some sort of flood control to this or risk being flooded off.

 Respond  
Jethro   -  Feb 07, 2011

$($+(,$me,)) why two extra asterisks when one will do it just fine? Trigger flood control is advised so you don't get overwhelmed with some rascals doing an action on you repeatedly.

 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.