coyotte508/pokemon-online — pull request #172 by CrystalMoogle (2012-11-23 22:14:39+00:00)
Title: More script things + changes to the system tray icon

I didn't see functions (or anyway at all) to get these from current scripts, so I added them.
client.autojoinChannels() gets a list of the clients autojoinChannels() for the current server it is logged into.
client.myChannels() gets the list of channels the player is currently in.
Both these return the channel names.

I know there is a way to get a list of players for channels already, but it involves juggling joins/leaves which is just plain annoying... so I added client.channel(channel).players() which gets a list of player ids that are currently in that channel.

I also ported the new timer functions over (I pretty much did it exact, and I tested it so there should be no problems :x ), so they'd be in unison with the server scripts (plus I really like the new timer functions!)

Added a beforeChallengeReceived(id) event which gets called right before you get a challenge. Stopping the event tells the challenger the player is busy, rather than them getting no message at all.

Lastly added an option to the server config to allow switching between single/double click to reopen the server when minimized to the system tray (Single click is really annoying, especially as double click is supposed to be the standard :x ). I was tempted to make double click the only option... but well I saw more programs are using single click and giving users options is never a bad thing