Acronyms with switch

By Phil_FW on Mar 06, 2011

This is a snippet that replaces your input of an acronym like LOL and makes it say £àµghîñg صt £øµÐ... just right click for the switch. Acronyms were done by my dear friend Werewolf on peers :P

#shitstuff off
on *:input:*:{
  if ($left($1,1) == /) || ($ctrlenter) || ($inpaste) { return }
  else {
    var %x = 11,1£12àµghîñg 11Ø12µt 11£12øµÐ
    var %x2 = 4,1FÙÇK
    var %x3 = 7,1A$$båg
    var %x4 = 11,1HÒ££YWÒÒÐ 4ÙÑÐÈÀÐ
    var %x5 = 4,1A11Y12-6C4A11R12A6M4B11A12!
    var %x6 = 11,1H4Ò11M4Ì11È4Z
    var %x7 = 12,1m4IR8C
    var %x8 = 11,1//12LîghtIRC11\\
    var %x9 = 12,1T13r4i7p11p3y
    msg $target $replace($1-,lol,%x,fuck,%x2,assbag,%x3,hollywood undead,%x4,ay caramba,%x5,homies,%x6,mirc,%x7,light irc,%x8,trippy,%x9)
    haltdef
  }
}
#shitstuff end
menu channel {
  ..--Shit Stuff--
  .Switch {
    $+($iif($group(#shitstuff) != off,.dis,.en),able) #shitstuff
    echo -a Shit Stuff $+($replace($group(#shitstuff),on,Ac,off,Deac),tivated.)
  }
}

Comments

Sign in to comment.
napa182   -  Mar 09, 2011

yawns

Dean stop dragging me into ur self absorbed arguments.

 Respond  
_Dean_   -  Mar 09, 2011

Everyone now, read it

stop using sockets cause its belong to Napa

you cant write sockets like this

sockwrite -n $sockname GET  / HTTP/1.1
sockwrite -n $sockname HOST: host
sockwrite -n $sockname $crlf 

or this

var %x = sockwrite -n $sockname 
%x GET / HTTP/1.1
%x HOST: host
%x $crlf

please pay attention on the examples above, cause its protected under copyrights, and Napa may enter with legal actions against you

by the way, for all you guys that use $regex, stop, this is forbidden here
$regex is registered under Jethro_ name, and its protected by copyrights, so if you already thought in use $regex,$regsub,$regsubex, you need to delete it as fast as you can, or he may enter with legal actions against you

© Jethro_ & Napa co. ltd

$regex,$regsub,$regsubex,sockets ™ are registered marks protected by copyrights

 Respond  
_Dean_   -  Mar 09, 2011

its really amazing, when you see him saying that i "stole" sockets from napa, "his" regex

because I've found [[:punct:]] and (?!) used in my regex

so you're the only guy in the world that uses [[:punct:]] ? you're a dumbas­s, if you type regex on google, this is the first tutorial that appears http://en.wikipedia.org/wiki/Regular_expression if you check the entire page it will return all about regex, damn Jethro_ , i know you was an as­shole, but not like that, you need to proof it
if you type "mIRC sockets" on google, the first page will be the http://www.mircscripts.org/showdoc.php?type=tutorial&id=1128, so i guess that you stole it from google so... oh no wait, you stole it from wikipedia, cause in there, they use an example with [:punct:], now stop thinking that you're the GOD of MSL, cause you're just a sh­it in 1 million of other guys that script too, dont think that someone stole it from u, or ur husband napa, cause MSL its open source a­sshole, you're really think that u was the only guy in the world that just "omg, i can use [:punct:] to match the punctuation, im genius"

grow up as­shole, you can answer this 1 million times, and i will come here to call u an as­shole 1 million time

 Respond  
Jethro   -  Mar 09, 2011

sunslayer, that is what I initially mentioned, but I didn't want to hurt Dean's feelings, so I went along with it.

Dean's learned similar approaches from napa182's sockets. If you have looked at his sockets, you will see that easily. He event adapts a bit of this and that from mine along the way. As for regex, I kind of experience deja vu here because I've found [[:punct:]] and (?!) used in my regex at the forum these past few days...he sees them and tries to interpret them in his own way.

Well, he's going to fight back after I post this...lol

 Respond  
sunslayer   -  Mar 08, 2011

there are multiple other snippets like this on here so I think I'll hold off on posting one for now... (trying to be nice) maybe you should consult your sources if you think that that regex makes any sense what-so-ever

 Respond  
_Dean_   -  Mar 08, 2011

no matter where i learn it, if you have another version for this, post it, if you came here to know where i learn regex, you're wasting ur time

 Respond  
sunslayer   -  Mar 08, 2011

in fact its not wrong, cause the ?: will look for that match, but its just necessary the ?!

you can interpret the (?:(?![[:punct:]])) as

"the next match needs to be something, that its not punctuation" I'll say it again...> I'd like to know where you learned regex lol

 Respond  
_Dean_   -  Mar 08, 2011

in fact, no one really read and then comment...

in fact its not wrong, cause the ?: will look for that match, but its just necessary the ?!

you can interpret the (?:(?![[:punct:]])) as

"the next match needs to be something, that its not punctuation"

 Respond  
sunslayer   -  Mar 08, 2011
(?:(?![[:punct:]]))

I'd like to know where you learned regex lol
thought I'd throw my two cents in...

 Respond  
_Dean_   -  Mar 08, 2011

all day, all posts, you guys saying "i dont care", but in fact you all care, all crap ever

Jethro_ or napa182 answer below saying about troll, etc

 Respond  
napa182   -  Mar 08, 2011

Jethro_ in the past most of us had to stop posting snippets cuz of Trolls that like to start drama. We didn't bother posting cuz our snippets were bogged down or not even seen cuz of the comments on other snippets/images from the trolls.
after they find out no one cares what they think they do stop then we can post again. I haven't giving up on anyone, and like I said I still will make comments to help an help out in the forums when I can. Tho I have giving up on the Trolls.

 Respond  
Jethro   -  Mar 08, 2011

First of all, I apologize for hijacking the thread to begin with, but I was trying to make a point, (an unnecessary point per se) and that it backfired as a result. it's wrong of me to start this when it could have prevented by ignoring. Sometimes, though, it's hard when you can't help it but to notice a person who brings up the miscellaneous past quotes as a way to drive people up the wall. (I really don't know what's that person afraid of that a preparation of quotes has to be used prior) I shall learn to look past a person's immature mind game and not get dissolved into it from now on. I know when I do, I let that person get the best of me...and that's what precisely has happened.

napa182, I'm not sure why this "drama", as you call it, has to do with the future submission of your snippets. You've put up with many of them yourself before, haven't you? I don't see the reason the drama has to be connected to your work. Unless, of course, you do care to some extent that you have given up on those folks, including me, who do appreciate it.

 Respond  
napa182   -  Mar 08, 2011

well heres an idea.. Jethro_ & Dean why don't you two settle it on IRC instead of going on an on...
or just take it to the forums instead of going at it on someones snippet.
anyways thats up to you two. I really don't care.

Just from the drama on this site... I for one will no longer post any more snippets on this site, but I will still make comments, and help out in the forums from time to time.

 Respond  
Jethro   -  Mar 08, 2011

Dean the dot literally matches everything except a newline. Yes, it does prevent the match from being triggered if proceeded by a space. In fact, if you have done (^| ), you can instead put ( |$) at the end. This will do the exact same thing as your punct and digit.

Phil, would you please freaking calm down? Everybody gets into a quarrel with his or her family, colleagues, and girlfriend and boyfriend once in a while. Besides, we're keeping the post on the right track for a healthy discussion herein.

P.S. Dean please don't flatter yourself. You don't have to follow me back, do you?

 Respond  
_Dean_   -  Mar 08, 2011

You two need to stop arguing about this crap.. Everybody has their own way of scripting, if it works, WHO CARES... I'm sick and tired of drama everywhere I freaking go.

i try... but this guys always follow me

Why didn't you post the whole regex?

we was talking about the regex match, so i thought that was no needed an explanation, that you need to put that in there
as u said (?!.) will match everything so it will not be triggered if, there is another thing after the acronym like, a space...

[17:34:59] <&Botname> testing 11,1£12àµghîñg 11Ø12µt 11£12øµÐ
[17:34:22] <&Botname> testing lol testing

so, (?![[:punct:]\d+]) its really necessary if you dont want it to trigger on lol! or LOL1

 Respond  
Phil_FW   -  Mar 08, 2011

You two need to stop arguing about this crap.. Everybody has their own way of scripting, if it works, WHO CARES... I'm sick and tired of drama everywhere I freaking go.

 Respond  
Jethro   -  Mar 08, 2011

Why didn't you post the whole regex? When you posted it partially, it gave me a false impression that (?![[:punct:]\d+]) is the pattern you were gonna use.

You could simply use (?!.) the dot matches literally everything. The word boundary in the end is not necessary if you use a dot.

 Respond  
_Dean_   -  Mar 08, 2011

if someone could test just test this one
i just gave it to another person and worked too

[06:50:55] testing 11,1£12àµghîñg 11Ø12µt 11£12øµÐ
[06:50:58] testing 11,1£12àµghîñg 11Ø12µt 11£12øµÐ testing
[06:51:02] lol^
[06:51:05] lol123
[06:51:08] Lol1
[06:51:11] so?

on *:input:*:{
  if ($left($1,1) == /) || ($ctrlenter) || ($inpaste) { return }
  elseif $regex($1-,/(^| )(lol|fark|assbag|hollywood undead|ay caramba|homies|mirc|light irc|trippy)(?![[:punct:]\d+])\b/iS) {
    var %x = 11,1£12àµghîñg 11Ø12µt 11£12øµÐ
    var %x2 = 4,1FÙÇK
    var %x3 = 7,1A$$båg
    var %x4 = 11,1HÒ££YWÒÒÐ 4ÙÑÐÈÀÐ
    var %x5 = 4,1A11Y12-6C4A11R12A6M4B11A12!
    var %x6 = 11,1H4Ò11M4Ì11È4Z
    var %x7 = 12,1m4IR8C
    var %x8 = 11,1//12LîghtIRC11\\
    var %x9 = 12,1T13r4i7p11p3y
    msg $target $replace($1-,lol,%x,fark,%x2,assbag,%x3,hollywood undead,%x4,ay caramba,%x5,homies,%x6,mirc,%x7,light irc,%x8,trippy,%x9)
    haltdef
  }
}
 Respond  
Jethro   -  Mar 08, 2011

Maybe it only works for you. It doesn't work for me. If someone else can test your regex and tell me it does work as you claim, I'll owe you a pardon. That someone has to be impartial.

 Respond  
_Dean_   -  Mar 08, 2011

i dont know which script you're testing
cause i tested using (?![[:punct:]\d+]) and worked

[06:29:34] <&Botname> testing LOL1 testing
[06:30:29] <&Botname> lol1

 Respond  
Jethro   -  Mar 08, 2011

Your regex will still trigger on LOL1. To make matters worse, it triggers on everything.

 Respond  
_Dean_   -  Mar 08, 2011

i know it, but u know that i did it just to filter words, i dont even put numbers on the match \d+ to not match with LOL1 which can be solved with (?![[:punct:]\d+])

 Respond  
Jethro   -  Mar 08, 2011

?: will look for the match but not capture it.

 Respond  
napa182   -  Mar 08, 2011

lol Clowns...
anyways nice to see you getting a bit better phil24 even tho acro replacers are played out, but keep it up.
4/10

 Respond  
_Dean_   -  Mar 08, 2011

in fact its not wrong, cause the ?: will look for that match, but its just necessary the ?!

you can interpret the (?:(?![[:punct:]])) as

"the next match needs to be something, that its not punctuation"

 Respond  
Jethro   -  Mar 08, 2011

I was not having beef with or grudge toward Dean until he repeatedly digs up old posts for his own advantages, and that blows a fuse...perhaps just to me and those who might find it discomforting reading his continuous quotes from other people who commented on him negatively. He can't accept any sort criticisms, either it was constructive or not. He wants to be praised.

Dean, what is this: > ?:(?! you use the look-ahead assertion to not match the punctuations, and then you use > ?: to not capture the match. It just ain't right and addin' up.

The common punctuations should be excluded, but not all of them...

 Respond  
Sorasyn   -  Mar 07, 2011

Apologies Dean I did not see Jethro_'s response, but in any case, take this grudge match to IRC WHERE THE REAL WAR CAN BE FOUGHT.

 Respond  
_Dean_   -  Mar 07, 2011

this is the code that prevent the non-words

on *:input:*:{
  if ($left($1,1) == /) || ($ctrlenter) || ($inpaste) { return }
  elseif $regex($1-,/(^| )(lol|fuck|assbag|hollywood undead|ay caramba|homies|mirc|light irc|trippy)(?:(?![[:punct:]]))\b/iS) {
    var %x = 11,1£12àµghîñg 11Ø12µt 11£12øµÐ
    var %x2 = 4,1FÙÇK
    var %x3 = 7,1A$$båg
    var %x4 = 11,1HÒ££YWÒÒÐ 4ÙÑÐÈÀÐ
    var %x5 = 4,1A11Y12-6C4A11R12A6M4B11A12!
    var %x6 = 11,1H4Ò11M4Ì11È4Z
    var %x7 = 12,1m4IR8C
    var %x8 = 11,1//12LîghtIRC11\\
    var %x9 = 12,1T13r4i7p11p3y
    msg $target $replace($1-,lol,%x,fuck,%x2,assbag,%x3,hollywood undead,%x4,ay caramba,%x5,homies,%x6,mirc,%x7,light irc,%x8,trippy,%x9)
    haltdef
  }
}

Dean_, if you already use regex to check the acronyms, you don't need this line at all:
[quote]
if ($left($1,1) == /) || ($ctrlenter) || ($inpaste) { return }

[/quote]

that line is really necessary on code, if you dont want it to be replaced using the $ctrlenter or the $inpaste
SunnyD if you check above, who starts all this, you will see that was not me, why you always comment my name? next time come here to comment about code, not about my post

 Respond  
Sorasyn   -  Mar 07, 2011

Is it impossible to just let it go and move on? I don't know what personal beef you have with Jethro_ other than his shear presence bothers you so bad that you have to start shit but honest to god its starting to get annoying seeing the same thing on every snippet.

 Respond  
Jethro   -  Mar 07, 2011

You either can't or won't.

 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.