collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: IRC Reconnect  (Read 2145 times)

0 Members and 1 Guest are viewing this topic.

Offline Snarfblatt

  • BeBot User
  • **
  • Posts: 63
  • Karma: +0/-0
IRC Reconnect
« on: September 18, 2006, 06:23:20 pm »
The bot seems to disconnect from IRC at times and the Reconnect setting doesn't ever kick in and reconnect the bot. Does the Reconnect actually work? I wish I had more specifics as to why the bot disconnects from IRC, but I haven't figured out yet what is triggering it. Any thoughts or ideas are appreciated.

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: IRC Reconnect
« Reply #1 on: September 18, 2006, 10:07:19 pm »
Known issue on my ToDo list. The Reconnect setting is badly named as it should be named Autoconnect or simply irc on/off as all it does is make the bot connect on startup.
BeBot Founder and Fixer Kingpin

Offline Snarfblatt

  • BeBot User
  • **
  • Posts: 63
  • Karma: +0/-0
Re: IRC Reconnect
« Reply #2 on: September 19, 2006, 09:27:45 pm »
Bummer... I guess maybe I'll dig in the code and see if I can figure out how to get it to happen.

Offline Snarfblatt

  • BeBot User
  • **
  • Posts: 63
  • Karma: +0/-0
Re: IRC Reconnect
« Reply #3 on: September 19, 2006, 09:37:26 pm »
could I just do something like this:
function cron()
{
	
if ((
$this -> irc != null) && (!$this -> irc -> _rawreceive()))
	
{
	
	
$this -> irc_disconnect();
	
	
$this -> bot -> send_gc("IRC connection lost...");
                
$this -> connect();

	
}
}


Then if we are disconnected, we try to connect again.
« Last Edit: September 19, 2006, 09:40:48 pm by Snarfblatt »

Offline Snarfblatt

  • BeBot User
  • **
  • Posts: 63
  • Karma: +0/-0
Re: IRC Reconnect
« Reply #4 on: September 19, 2006, 11:33:11 pm »
Well I think I answered my own question. I tried this, then kicked the bot from IRC and it didn't try to reconnect. :(

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 158
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal