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: 4.2 and IRC  (Read 6841 times)

0 Members and 1 Guest are viewing this topic.

Offline Dracutza

  • BeBot Apprentice
  • ***
  • Posts: 126
  • Karma: +0/-0
4.2 and IRC
« on: October 02, 2007, 10:35:08 pm »
[SETTINGS]      [UPDATE]        Set longdesc for setting [Irc][AnnounceWhat] to which events should be announced to irc? none, only buddies logging on, only joins to the chatgroup or both?
MySQL error (# 2) on query: UPDATE pobot_settings SET defaultoptions = 'none;bud
dies;joins;both' WHERE module = Irc AND setting = AnnounceWhat
Unknown column 'Irc' in 'where clause'

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: 4.2 and IRC
« Reply #1 on: October 02, 2007, 10:48:38 pm »
Fixed in SVN and updated release packages.

Offline Dracutza

  • BeBot Apprentice
  • ***
  • Posts: 126
  • Karma: +0/-0
Re: 4.2 and IRC
« Reply #2 on: October 02, 2007, 11:14:27 pm »
I still get this after every restart

Pobot [2007-10-02 21:06:13]     [SETTINGS]      [SAVED] connected for module irc set to FALSE as datatype bool
Pobot [2007-10-02 21:06:13]     [SETTINGS]      [UPDATE]        Set longdesc for setting [Irc][AnnounceWhat] to which events should be announced to irc? none, only  buddies logging on, only joins to the chatgroup or both?
Pobot [2007-10-02 21:06:13]     [SETTINGS]      [UPDATE]        Set defaultoptions for setting [Irc][AnnounceWhat] to none;buddies;joins;both

Also... after the first two restarts, we were getting spammed by

[Paragon Order] Groovin: neat its christmas chat
[Paragon Order] Pobot: Last line not relayed to IRC as it's containing too many characters!
[Paragon Order] Vingus: ho ho ho
[Paragon Order] Pobot: Last line not relayed to IRC as it's containing too many characters!
[Paragon Order] Whiskisieppo: .
[Paragon Order] Pobot: Last line not relayed to IRC as it's containing too many characters!


But after 3rd restart, it fixed itself

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: 4.2 and IRC
« Reply #3 on: October 02, 2007, 11:20:43 pm »
I still get this after every restart

Pobot [2007-10-02 21:06:13]     [SETTINGS]      [SAVED] connected for module irc set to FALSE as datatype bool
Pobot [2007-10-02 21:06:13]     [SETTINGS]      [UPDATE]        Set longdesc for setting [Irc][AnnounceWhat] to which events should be announced to irc? none, only  buddies logging on, only joins to the chatgroup or both?
Pobot [2007-10-02 21:06:13]     [SETTINGS]      [UPDATE]        Set defaultoptions for setting [Irc][AnnounceWhat] to none;buddies;joins;both
That's correct, the updating part is done every restart - just ignore it, it doesn't break anything.

No clue what's up with the other error though.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: 4.2 and IRC
« Reply #4 on: October 03, 2007, 02:35:04 am »
i used to have that error alot with IRC from crashes, since i make modules i crash my bot alot :p
what i did to fix was to use cron

in function IRC
Code: [Select]
$this -> startup = TRUE;

Code: [Select]
function connect()
{
$this -> bot -> cron["1sec"]["irc"] = &$this;
}

Code: [Select]
function cron()
{
if ($this -> startup)
{
$this -> startup = FALSE;
$this -> startuptime = time();
unset ($this -> bot -> cron["1sec"]["irc"]);
if ($this -> bot -> settings -> get("Irc", "Reconnect"))
$this -> irc_connect("c");
}
else if (($this -> irc != null) && (!$this -> irc -> _rawreceive()) && $this -> startuptime + 30 < time())
{
$this -> irc_disconnect();
$this -> bot -> send_gc("IRC connection lost...");

if ($this->bot->settings->get("Irc","Reconnect"))
{
$this -> bot -> cron["1sec"]["irc"] = &$this -> bot -> commands["tell"]["irc"];
$this->irc_connect();
}
}
}
altho it wont connect till 30 secs after startup it works good and i have no probs
« Last Edit: October 03, 2007, 02:39:03 am by Temar »

Offline Dracutza

  • BeBot Apprentice
  • ***
  • Posts: 126
  • Karma: +0/-0
Re: 4.2 and IRC
« Reply #5 on: November 17, 2007, 04:13:21 am »
its doing it again  ???

Offline Dracutza

  • BeBot Apprentice
  • ***
  • Posts: 126
  • Karma: +0/-0
Re: 4.2 and IRC
« Reply #6 on: November 17, 2007, 04:21:06 am »
and again, 3 restarts and it works.

odd

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: 4.2 and IRC
« Reply #7 on: November 17, 2007, 04:36:38 am »
did you try my fix?

Offline Dracutza

  • BeBot Apprentice
  • ***
  • Posts: 126
  • Karma: +0/-0
Re: 4.2 and IRC
« Reply #8 on: November 19, 2007, 03:28:37 pm »
which file do i edit?

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: 4.2 and IRC
« Reply #9 on: November 19, 2007, 05:34:10 pm »
modules/IRC.php

Offline Trancillion

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
Re: 4.2 and IRC
« Reply #10 on: December 10, 2007, 11:17:02 am »
Code: [Select]
$this -> startup = TRUE;

where do you place this ? can't seem to find out where. I've set in the two other things, i get it to work just fine, only thing is that it doesn't want to connect automatically to IRC. I need to use !irc connect .

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: 4.2 and IRC
« Reply #11 on: December 10, 2007, 04:05:23 pm »
in function irc()

 

* 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: 250
  • 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