http://openkore.svn.sourceforge.net/vie ... threv=8332
"loginPinCode" config option already existed, so I guess that change would break all setups where it was already being used for its other purpose. Not to mention that these is already hook provided for server-specific complications.
r8332 bRO loginPinCode
Moderator: Moderators
-
- Developers
- Posts: 1798
- Joined: 05 Dec 2008, 05:42
- Noob?: Yes
-
- Developers
- Posts: 308
- Joined: 06 Jul 2012, 13:44
- Noob?: No
Re: r8332 bRO loginPinCode
Actually, I don't think it will, since it relies on {broPin}, aside from {loginPinConfig}.EternalHarvest wrote:"loginPinCode" config option already existed, so I guess that change would break all setups where it was already being used for its other purpose.
But since you advised me not to mess with directconnection.pm, I think this is pretty much the same case...
this one, right?EternalHarvest wrote: Not to mention that these is already hook provided for server-specific complications.
Code: Select all
$self->{charSelectScreenHook} = Plugins::addHook(charSelectScreen => sub {
$Globals::timeout{charlogin}{time} = time;
$_[1]{return} = 2;
});
-
- Developers
- Posts: 1798
- Joined: 05 Dec 2008, 05:42
- Noob?: Yes
Re: r8332 bRO loginPinCode
Read the code again and imagine what will happen if any of these options aren't empty.ever_boy_ wrote: Actually, I don't think it will, since it relies on {broPin}, aside from {loginPinConfig}.
Timeout objects, where used as the only argument to timeOut(), are hashes with "time" and "timeout" keys.Just out of curiosity, how can I give this hook a slightly bigger timeout, without setting it in timeout.txt?
-
- Developers
- Posts: 60
- Joined: 05 Oct 2011, 09:21
- Noob?: No
- Location: Brazil
Re: r8332 bRO loginPinCode
I've modified the wanted behavior in misc.pm, avoiding a possible race condition unexpected by it for people not playing in bRO.