Ken

Ken

Joined
Feb 21, 2008

Activity Stream

Ken commented on a Page, Hotlink reverse modes  -  Feb 27, 2008

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:

on $^*:hotlink:/[+-][ohvbeIsklim]/:#: scon -r $iif($nick(#,$me,@%),return,halt)
on $*:hotlink:/([+-][ohvbeIsklim])/:#: mode # $replacex($regml(1),+,-,-,+)

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!

 Respond  
Ken commented on a Page, Hotlink reverse modes  -  Feb 26, 2008

if you made that regex, you should know how to create a back referance, and how to use it. Of course I created that regex, I can\'t imagine something as simple as the regex I use is extremely hard to create. I\'m not a leecher. :/

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: ). This one uses %b to find and %c to find , I don\'t understand how back referencing could achieve that, unless I added 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. :(

 Respond  
Ken commented on a Page, Hotlink reverse modes  -  Feb 26, 2008

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

 Respond  
Ken created a Page  -  Feb 25, 2008
499 

Well, I decided to try something new with mirc, and that was hotlinks. Just tried them out and they are kind of neat. Anyway, this snippet will reverse a mode previously set by double-clicking on the mode event.

Ken commented on a Page, URL fetcher  -  Feb 21, 2008

I see your point, however, it would be nice to make this for personal use. Also, if this was created for a bot, I think that the author should state that in the introduction. :)

 Respond  
Ken commented on a Page, URL fetcher  -  Feb 21, 2008

This is excellent! I found this to be very useful, and the coding is impressive.

I think you should make it optional between echo and a message. :(

 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.