Serpentsounds

Serpentsounds

Joined
Oct 28, 2009

Activity Stream

Serpentsounds created a Page  -  May 29, 2014
1 226 

If you ever encounter Japanese text during your IRCing, you might be able to make use of this. Unfortunately, it will only help you out with kana, not kanji, sorry!

 Respond   mIRC  
Serpentsounds commented on a Page, Auto Translator  -  May 14, 2011

The translator will the default action for all incoming text, and display the translated text in the same format once it is received from the socket. Because of this, your highlight seems to be prevented from ever activating. However, if it didn't do this, you would be seeing 2 of every message. You'd probably have to add a highlight exception within the translation script itself, or change your highlight management to be in a script further up on the list than the translator rather than the built-in highlight in the address book.

 Respond  
Serpentsounds commented on a Page, Ultra Kick/Ban Command  -  May 14, 2011

Nope, you didn't miss it. I'll probably edit one of those in as soon as I do it.

 Respond  
Serpentsounds commented on a Page, Advanced Trout Protection  -  Apr 30, 2011

on $:ACTION:$(/slaps.?\Q $+ $me $+ \E.*?trout/iS):#:{ }

Edit: Whoops, didn't realize how old this was...just was looking at the recent comment feed, haha.

 Respond  
Serpentsounds commented on a Page, duration()  -  Apr 28, 2011

Hawkee's suggestion to specify a unit of measure meant that it would be convenient if the user didn't always need to give the duration in seconds. With an option parameter $measure, you could call duration(3, 'hours'); and that bit from my previous posted would translate that into 10800 before performing the regex substitution.

 Respond  
Serpentsounds commented on a Page, duration()  -  Apr 28, 2011

$scale = array('minutes' => 60, 'hours' => 3600, 'days' => 86400, 'weeks' => 604800);
$s *= (isset($measure) && isset($scale[$measure])) ? $scale[$measure] : 1;

 Respond  
Serpentsounds created a Page  -  Apr 20, 2011
859 

Okay, so the "Ultra" kinda implies some profound greatness, but my personal kick and ban commands do only what they sound like, haha. However, I do think that they accomplish that pretty well.

Serpentsounds commented on a Page, On Join  -  Feb 23, 2011

Better than half the stuff I see submitted nowadays.

 Respond  
Serpentsounds commented on a Page, Auto Translator  -  Feb 08, 2011

I'm guessing that happened since he pasted several lines at once, and the socket names are based on $ticks. Another thing to fix if I ever come back to this. :p

 Respond  
Serpentsounds commented on a Page, Auto Translator  -  Nov 29, 2010

Yeah blackvenom that is something that I was also considering: have an optional prefix/suffix to the message that says [Translated from somelanguage]. Is that what you mean?

 Respond  
Serpentsounds commented on a Page, Auto Translator  -  Nov 28, 2010

That's an issue with your local machine, I'm afraid to say. If you don't have the support to display some languages (such as Japanese which uses a specific set of unicode characters) you will get boxes.

 Respond  
Serpentsounds commented on a Page, Auto Translator  -  Nov 28, 2010

Thanks blackvenom, glad you found some use. :)

...Hey look above, it's me commenting in the summer about how I was going to upgrade it! And I still haven't. <_<

Also, fixing that color issue does sound like something important. I'll address that when I fix this up.

 Respond  
Serpentsounds commented on a Page, Google Translator  -  Nov 18, 2010

I hate to plug, but the one on my profile still works fine for me (albeit the snippet itself being outdated) if you need fixing notes. I'd recommend using the google translator API rather than translate.google.com.

 Respond  
Serpentsounds commented on a Page, Auto-oper with Var arrays  -  Nov 09, 2010

Congratulations on trying to benchmark a single pass with your eyes. This IS a computer we're talking about, you know.

 Respond  
Serpentsounds commented on a Page, How fast can you type A-Z?  -  Aug 29, 2010

2.84 seconds, after like 50 tries, haha.

 Respond  
Serpentsounds commented on a Page, Hash View/Edit Dialog  -  Aug 20, 2010

Awesome. I had been meaning to make a hash table explorer too, but laziness trumps all, it seems. Anyway, this is pretty much exactly how I envisioned it, so good work! :]

 Respond  
Serpentsounds commented on a Page, FILE LOADER  -  Aug 18, 2010

Having people replace things in the middle of the script is not a very good practice, especially when they appear multiple times. Rather, you should make local identifiers at the top of script to be editable. It's much cleaner and easier on the user that way. :]

 Respond  
Serpentsounds commented on a Page, DeluXe Whois  -  Aug 12, 2010

Yeah, the command character switching is a good point...although I'm sure the vast majority of people leave it as /, I guess that means omitting the / in scripts does make it SLIGHTLY more compatible.

And yeah, the . prefix is only to make fewer things appear locally. It's good for some private /notices or /msgs that are script triggered (especially auto-identify. Something about seeing my password appear on the screen bugs me. :P). Also useful for /timer and file handling commands (/fopen and the rest) because nobody really wants to see hundreds of /fwrite notices outside of debugging. ;]

 Respond  
Serpentsounds commented on a Page, DeluXe Whois  -  Aug 10, 2010

By "minor syntactical deviation" I was implying that only a small number of characters varied. I'm not saying any way is right or wrong either, just that differences like "/echo" and "echo" both function the same in the script. Though I would personally opt for the shorter option, it should be up to whoever is writing it.

 Respond  
Serpentsounds commented on a Page, DeluXe Whois  -  Aug 09, 2010

A person doing something one way doesn't make it "right," especially if others use minor syntactical deviations to achieve the result (that means that their method is also not "right").

If it works and there aren't blatant inefficiencies, no arguments here. ;)

 Respond  
Serpentsounds commented on a Page, Mass Mode  -  Jul 23, 2010

Alrighty, if you insist :)

I originally didn't want to because you'd need separate comparisons for each mode, and I wanted to keep it compact, so I found a more compact way to do it:

var %n $replacex($left($nick(%c,$me).pnick,1),~,4,&,3,@,3,%,2), %d $replacex(%y,~,3,&,3,@,2,%,2,+,1)
  if (%n <= %d) {
    echo -ac INFO * /massmode: You do not have the required permissions on %c 
    return
  }

%c and %y of course already being set in the script. Editing the script with this addition.

Edit: made it even shorter. Not sure why I didn't use $nick before. >_>

var %d $replacex(%y,&,~,@,~&@,%,~&@,+,~&@%)
  if (!$nick(%c,$me,%d)) {
    echo -ac INFO * /massmode: You do not have the required permissions on %c 
    return
  }
 Respond  
Serpentsounds created a Page  -  Jul 22, 2010
647 

I'm sure there are zillion of these, but I don't think I'm (directly) doing anyone harm by posting it. As with most little snippets like these, it's another whimsical product of my boredom.

Serpentsounds commented on a Page, Auto Translator  -  Jul 19, 2010

No problem! Haven't got a comment on this in a while. You reminded me, I was going to upgrade it. I should get around to that. ;]

 Respond  
Serpentsounds commented on a Page, Clone ban script  -  Jun 17, 2010

The ^ enables you to halt default actions associated with that event. I just copy-pasted his script and kinda skipped over it. :P

And of course, there seems to be nothing $regsubex can't do, haha!

 Respond  
Serpentsounds commented on a Page, Clone ban script  -  Jun 14, 2010

Not bad, a couple things to keep in my mind for future endeavors:

on ^*:BAN:#CHANNEL:{
var %bannum 1
while ($nick($chan,%bannum)) {
if ($address($v1,2) == $banmask) kick $chan $nick($chan,%bannum) You have been banned
inc %bannum
}
}

Rather than doing while (%bannum <= $nick($chan,0)), you can use the change shown to achieve the same result and even quickly access the result with the $v1 identifier. Since you have 'inc %bannum' in both blocks of logic, you can improve efficiency and readability by switching the logic around to only place it where required.

Not saying that anything you did was wrong in any way, but suggestions have always helped me.

 Respond  
Serpentsounds commented on a Page, mIRC Syntax Highlighter for Notepad++  -  Jun 12, 2010

Ah, thanks sean, that was pretty careless of me. I'll update it.

jaytea, unless I made my own program from the ground up, there probably won't be a ton of improvement. Notepad++ is a bit limited in things you can define in a custom language. It definitely has some useful options, but you can't make things as perfectly as you would like. Hopefully support is extended in future releases of Notepad++.

 Respond  
Serpentsounds created a Page  -  Jun 12, 2010

Well, this is technically XML, but I didn't see an entry for XML in the snippet list (rightfully so, as it would be a bit out of place). The next most directly applicable label would be mIRC then.

Serpentsounds commented on a Page, Auto Translator  -  Feb 17, 2010

Sorry to hear that you're having trouble with it. Keep in mind that this is constantly opening sockets, so if your resources and/or bandwidth are limited (or just have a faulty connection) you might encounter some issues. I'd blame google but they are almost never down. :p

 Respond  
Serpentsounds created a Page  -  Feb 14, 2010
2 557 

This idea is pretty simple, yet I have already found many uses in a short span of time. It focuses on limiting the length of text output, for length cutoffs by an IRC server or other reasons.

Serpentsounds created a Page  -  Feb 07, 2010
111 

I originally made this to support something else I was making, when I said to myself, "it sure would be nice if I could use php's file() here." So, I decided to make my take on it, and I end up adding some things. Basic usage:

  1 Thread   mIRC  
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.