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.)
}
}
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
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 dumbass, 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 asshole, 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 shit 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 asshole, 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 asshole, you can answer this 1 million times, and i will come here to call u an asshole 1 million time
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
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.
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.
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.
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?
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
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
}
}
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...
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