Openkore.com

OpenKore Forums
It is currently 18 Nov 2019, 12:32

All times are UTC - 5 hours [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: relog after invalid server specified [confirmation]
PostPosted: 10 Apr 2008, 18:06 
Offline
Noob
Noob
User avatar

Joined: 05 Apr 2008, 17:00
Posts: 19
in DirectConnection.pm i want to change this block of code to re-login after the 'Invalid server specified, server' error.

i looked at the different parts of the file and made a change to it. I just want to know if it's correct or not. Thanks

Code:
   } else {
         error TF("Invalid server specified, server %s does not exist...\n", $config{server}), "connection";         
               $timeout_ex{'master'}{'time'} = time;
               $timeout_ex{'master'}{'timeout'} = $timeout{'reconnect'}{'timeout'};
               $self->serverDisconnect;
               undef $conState_tries;
         
         return;
      }


Top
 Profile  
 
 Post subject: Re: relog after invalid server specified [confirmation]
PostPosted: 10 Apr 2008, 20:42 
Offline
Perl Monk
Perl Monk

Joined: 04 Apr 2008, 17:26
Posts: 811
You need to make sure to point out your changes.

_________________
cs : ee : realist


Top
 Profile  
 
 Post subject: Re: relog after invalid server specified [confirmation]
PostPosted: 11 Apr 2008, 21:06 
Offline
Noob
Noob
User avatar

Joined: 05 Apr 2008, 17:00
Posts: 19
ok from this:

Code:
      } else {
         error TF("Invalid server specified, server %s does not exist...\n", $config{server}), "connection";

         my @serverList;
         foreach my $server (@servers) {
            push @serverList, $server->{name};
         }
         my $ret = $interface->showMenu(
               T("Please select your login server."),
               \@serverList,
               title => T("Select Login Server"));
         if ($ret == -1) {
            quit();
         } else {
            main::configModify('server', $ret, 1);
            undef $conState_tries;
         }
         return;
      }


i changed it to this :

Code:
   } else {
         error TF("Invalid server specified, server %s does not exist...\n", $config{server}), "connection";
         $timeout_ex{master}{time} = time;
         $timeout_ex{master}{timeout} = $timeout{reconnect}{timeout};
         $self->serverDisconnect;
         $self->setState(Network::NOT_CONNECTED);
         undef $conState_tries;
         return;
      }


is the function in openkore for relog just relog(); ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group