Hotlink reverse modes
Please Register to submit score.
| Average Score | 5.8 |
| Scores Submitted | 5 |
| Date Added | Feb 25, 2008 |
| Last Updated | Feb 26, 2008 |
| Tags | hotlink mode |
Introduction
If you'd like to add or remove modes, change the letters in [ohvbeIsklim].
*Updates: Now handles multiple modes at a time! - Thanks EL*
mIRC Snippet:
Hotlink reverse modes
Posted on Feb 25, 2008 11:36 pm
Posted on Feb 25, 2008 11:36 pm
Hey thats bad ass lol.Cool idea i had to change it for chatspace but ther then that it works.Not sure if its possable but when you more then one mode change +spl as suck you can only -l and not s(secret) p(private) it only reverses the last one set.But one at a time +s +p +l if you double click on each it will reverse them all.Interesting idea i like it.Good work."Rate ir or Hate it?"...8/10.`-.-´
mIRC Snippet:
Hotlink reverse modes
Posted on Feb 26, 2008 12:24 am
Posted on Feb 26, 2008 12:24 am
Nice.. i like this..I never got around to trying out the on hotlink yet...
mIRC Snippet:
Hotlink reverse modes
Posted on Feb 26, 2008 8:22 am
Posted on Feb 26, 2008 8:22 am
Updated! Now can handle multiple modes at a time, thanks EL for the idea. :) I've been receiving positive feedback so far, hope that continues.
Keep postin' comments guys. :P
Keep postin' comments guys. :P
mIRC Snippet:
Hotlink reverse modes
Posted on Feb 26, 2008 9:13 am
Posted on Feb 26, 2008 9:13 am
very nice snippet
mIRC Snippet:
Hotlink reverse modes
Posted on Feb 26, 2008 3:51 pm
Posted on Feb 26, 2008 3:51 pm
Just use back referances from your regex instead of using a bunch of tokens... if you made that regex, you should know how to create a back referance, and how to use it.
mIRC Snippet:
Hotlink reverse modes
Posted on Feb 26, 2008 4:16 pm
Posted on Feb 26, 2008 4:16 pm
| Quote: |
| if you made that regex, you should know how to create a back referance, and how to use it. |
The purpose of that regex is to just match the modes, I myself am not that skilled in regex, and as stated above, the regex I made is very simple. However, I don't understand how you could use a back reference in this case, as I primarily use tokens to locate the position of the mode in the string. Normally, without any themes, an mIRC user should have mIRC's default event text (<NICK1 sets mode: <mode> <NICK2>). This one uses %b to find <mode> and %c to find <NICK2>, I don't understand how back referencing could achieve that, unless I added <NICK2> or something to the regex.
If you could show me how it would be done, that'd be great. I'm not particularly great at regex. :(
mIRC Snippet:
Hotlink reverse modes
Posted on Feb 26, 2008 5:08 pm
Posted on Feb 26, 2008 5:08 pm
Nice update Ken.Works even better now ty.`-.-´
mIRC Snippet:
Hotlink reverse modes
Posted on Feb 27, 2008 9:21 am
Posted on Feb 27, 2008 9:21 am
nice works very well thanks!
mIRC Snippet:
Hotlink reverse modes
Posted on Feb 27, 2008 9:40 am
Posted on Feb 27, 2008 9:40 am
Alright.
The regex itself is doing the match, and if the regex matches, there must be a matching string or word. And the backreferance will just put that into the memory so you can read it later on.
Here's my version:
The regex itself is doing the match, and if the regex matches, there must be a matching string or word. And the backreferance will just put that into the memory so you can read it later on.
Here's my version:
| Code: |
on $^*:hotlink:/[+-][ohvbeIsklim]/:#: scon -r $iif($nick(#,$me,@%),return,halt) on $*:hotlink:/([+-][ohvbeIsklim])/:#: mode # $replacex($regml(1),+,-,-,+) |
mIRC Snippet:
Hotlink reverse modes
Posted on Feb 27, 2008 9:50 am
Posted on Feb 27, 2008 9:50 am
great idea =D
mIRC Snippet:
Hotlink reverse modes
Posted on Feb 27, 2008 7:07 pm
Posted on Feb 27, 2008 7:07 pm
| Quote: | ||
| Alright. The regex itself is doing the match, and if the regex matches, there must be a matching string or word. And the backreferance will just put that into the memory so you can read it later on. Here's my version:
|
I see how you approached it, I didn't realize you could use parenthesis that way, nice code. :D However, I don't understand how it would set user modes because you would also need to match the target. That would work for channel modes, but not user modes. Unless I am missing something. :o
Thanks guys for the positive feedback!









