Comments

 (290) 
  1. Everything
  2. Snippets
  3. Images
  4. Hardware
Gummo commented on mIRC Snippet: Mass Mode Popup (Via ChanServ)  -  Mar 28, 2011
A similar loop is this:

Code

 
Gummo commented on mIRC Snippet: Runescape players  -  Mar 14, 2011
GET and POST are only methods of requesting/sending data. Your regex is used when receiving it.
Gummo commented on mIRC Snippet: Switch Statement in msl  -  Feb 28, 2011
Jethro_, probably referring to the fact that you have to join each line together to form a pseudo-switch which is actually just a single command.
Gummo commented on mIRC Snippet: Switch Statement in msl  -  Feb 28, 2011
Won't that fail if you use any non-word character as your case criteria? (\w+)
Gummo commented on mIRC Snippet: Caps On 1st Letter  -  Jan 31, 2011
That explains the old programming style.
Gummo commented on mIRC Snippet: $utf8 + upsidedown and octatext  -  Jan 31, 2011
Converting the text in the reverse order, you mean. Probably easier to understand that way.
Gummo commented on mIRC Snippet: Easy Google Translator  -  Nov 29, 2010
/echo -q is an echo which doesn't show up if you put the . in front of your alias call.
/.msg hides the echo of your message.
If you created your own /noop alias which pointed to a silenced (e.g. /.noop2) alias then you could use echo -q but that'd be a pain anyway.
The other alternative, of course, is to just use a dud variable in its place.
Gummo commented on mIRC Snippet: Trial reset  -  Nov 29, 2010
You don't even need to "negotiate" to $10 - there is a valid discount for $10 still, which has been around for years. For the amount of time I've used it, it's worth the $10.
http://www.mirc.co.uk/register.php?coupon=MIRC-SWV0-MNKL
Gummo commented on mIRC Snippet: quote socket  -  Nov 25, 2010

Quote

i think someone should make a MSL program that makes the sockets for you, you type in the triggers and websites - Idea!

That's actually really easy up until the point where you decide how each website must be matched. All websites are arranged differently and sometimes the data comes through on more than one message, making that more difficult.
One solution which can't really fail is to always use a file and binvars, but that will make unnecessarily complicated scripts for most applications.
Gummo commented on mIRC Snippet: Ban Finder  -  Nov 23, 2010
Jethro_ you /set %nicks once as well as /var %nicks twice. You should probably fix that up.
Gummo commented on mIRC Snippet: Caps On 1st Letter  -  Nov 23, 2010
Using \w as your regex pattern by itself will match any word character after any word boundary. That means that "Jethro's" would become "Jethro'S"
For matching words alone you can use

Code

 

If you still want to match words in other places like "[Hello]" then you need a more complex check if you want to do this accurately.
Gummo commented on mIRC Snippet: Simple Highlight  -  Nov 22, 2010
Oh, I realise that $highlight() seems to be the best solution, which is why I explicitly stated that I wasn't using my script in a regular fashion. People tend to get my names wrong and they aren't common words so I'm not concerned about whether it's in a word or not in my case.
Gummo commented on mIRC Snippet: Simple Highlight  -  Nov 21, 2010
I have never used $highlight() because I need more advanced matching for my highlight script, but yes, regex won't achieve what that can do and thinking that \b or \B is going to work is a common mistake leaving many people confused as to why their script won't match something they think it should.

Napa, did you check when someone uses a number? jaytea used $lf to get around that.
Gummo commented on mIRC Snippet: Simple Highlight  -  Nov 21, 2010
$me doesn't only contain letters, numbers and - meaning a \b will often not match correctly, eg "]," has no word boundary (neither character is a word character).
Gummo commented on mIRC Snippet: Network's and chans  -  Nov 21, 2010
I don't know how $istokcs could have worked for you, Jethro_.
You're checking to see if ALL modes in a room match ONE mode.
+si does not match 's'.
$istokcs(s,si,32)
Gummo commented on mIRC Snippet: Op Yourself When Deop & UnBan Yourself When Banned  -  Nov 15, 2010
For clarification, Jethro_, since it retrieves the last token in a list with : between, if the server has no *:* bans it will still get the wildcard correctly. :)
Gummo commented on mIRC Snippet: AutoOp  -  Nov 14, 2010
I'm not actually sure what your response to me was supposed to mean, but there's no need to get defensive. It's just unused code.
Gummo commented on mIRC Snippet: Snippet to Slap, Giggle, Poke, Spank, ,Nudge, etc.  -  Nov 14, 2010
Jethro_, he can't store it in the original sock mark because it doesn't exist until the sockread. He then executes the sockmark as a partial command, so I don't know where you expect him to use it again.

On another note, whether "$1." is enabled doesn't change a preference to "$1 $+ ." which is a format more often used by a real programming language without a syntax which must be guessed by the compiler.
Gummo commented on mIRC Snippet: Snippet to Slap, Giggle, Poke, Spank, ,Nudge, etc.  -  Nov 13, 2010
The general hate for the goto command stems from the "goto is now bad programming" once structured programming techniques were developed, even though goto often makes faster, more logical code.
Gummo commented on mIRC Snippet: LogSearch  -  Nov 12, 2010
noop evaluates identifiers without performing a function.
The $findfile identifier returns a value you are not interested in, so you /noop it.
Using the method there you perform commands within it instead.
Gummo commented on mIRC Snippet: Op Yourself When Deop & UnBan Yourself When Banned  -  Nov 12, 2010
It won't match if they place a special ban like ~q: though, so for that you could use ($gettok($2,-1,58) iswm $ial($me))
I think a colon is 58, anyway. Not checking now.
Gummo commented on mIRC Snippet: Snippet to Slap, Giggle, Poke, Spank, ,Nudge, etc.  -  Nov 12, 2010
Then you ask the question of why you don't just do that for all of them.
On another note, using | as the delimiter like that may end up with a user having a | with a space either side, which breaks the script. It's best to stick with something else they're not likely to use, such as ~ or @
Gummo commented on mIRC Snippet: Warn (Kick Ban) People Who Advertise Other Chan`s  -  Nov 12, 2010
Yeah, I've known him for quite a while.
Gummo commented on mIRC Snippet: AutoOp  -  Nov 12, 2010
I'd rather help anyone who happens to stumble across this snippet. At this rate of comments, that's highly likely.
Gummo commented on mIRC Snippet: Snippet to Slap, Giggle, Poke, Spank, ,Nudge, etc.  -  Nov 12, 2010
Something tells me that people will give me a funny look if I type /slap Arch and it says
* Gummo giggle Arch
Gummo commented on mIRC Snippet: Warn (Kick Ban) People Who Advertise Other Chan`s  -  Nov 12, 2010
_Teen_ did say that, _Jethro, but in a confusing way. :P
Gummo commented on mIRC Snippet: volume sys  -  Nov 12, 2010
I was just explaining the reason for the path not existing.
Gummo commented on mIRC Snippet: AutoOp  -  Nov 12, 2010
You fool! Assuming I only want to help him! ;)
Gummo commented on mIRC Snippet: Warn (Kick Ban) People Who Advertise Other Chan`s  -  Nov 11, 2010
_Teen_, it means they run it on a particular server and didn't think to change the message.

Anyway.. You might want to make this script work by IP address instead of nickname, as that's harder to change.
Another improvement could be the use of -eu switches on your /inc (see help file for info) because otherwise someone could be banned for spamming a few times over a week or months.
Gummo commented on mIRC Snippet: Rejoin When Kick and Ban  -  Nov 11, 2010

Code

 

Be sure to change $chan here to #chan or people will modify your code instead of what they're supposed to change.
  1. Prev
  2. 1
  3. 2
  4. 3
  5. 4
  6. 5
  7. 6
  8. 7
  9. 8
  10. 9
  11. 10
  12. Next
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.