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

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

Author Topic: Wish.php & Autoinvite.  (Read 1540 times)

0 Members and 1 Guest are viewing this topic.

Offline laen

  • BeBot User
  • **
  • Posts: 24
  • Karma: +0/-0
Wish.php & Autoinvite.
« on: September 08, 2007, 07:17:18 pm »
Code: [Select]
MySQL error (# 0) on query: INSERT INTO bot_pgroup (id) VALUES (-204534226)
Table 'database.bot_pgroup' doesn't exist

Searching around, it is the Wish.php that wants to insert and update it, but never creates it. So change the Wish.php to make use of an existing table or create a new one i guess.


Besides that, whatever i try, autoinvite is turned on in the settings, even modified all user rows to have recieve_invite to 1, notify on all users was allready on one.. but it simply doesn't wanna work.

Besides that, it's spelled wrong. It's receive not recieve. So in addition to my request for help, how about a tablename rewrite?

Update:

The Autoinvite module (AutoInv.php) Doesn't seem to work without the Logon_Notify setting enabled. Make sure people know that!
« Last Edit: September 08, 2007, 08:26:57 pm by lcidw »

Offline Ebag333

  • Contributor
  • *******
  • Posts: 134
  • Karma: +0/-0
Re: Wish.php & Autoinvite.
« Reply #1 on: September 08, 2007, 08:59:59 pm »
If notify isn't on, the person isn't a buddy of the bot.  If they're not a buddy of the bot, then the bot never notices that they come online.  If the bot never notices that they come on line, the bot can't send out an autoinvite.

As for wish.php, that's quite an old module and would require a rewrite to bring it up to 4.x or 5.x standards.

Offline laen

  • BeBot User
  • **
  • Posts: 24
  • Karma: +0/-0
Re: Wish.php & Autoinvite.
« Reply #2 on: September 08, 2007, 09:09:56 pm »
Not quite right. The bot adds a person as a buddy once you !member add it. It sees em come online and go offline. The table row for a user even sets the notify value to 1 or 0, depending on the setting you did.

But, the user isn't invited if the notify module isn't turned on at the bot settings. Which is weird, try and see.

Offline Ebag333

  • Contributor
  • *******
  • Posts: 134
  • Karma: +0/-0
Re: Wish.php & Autoinvite.
« Reply #3 on: September 08, 2007, 11:18:44 pm »
That is true, but this bit of code comes into play.

Code: [Select]
<php

$mem = $this -> notify -> check($user);

<skipping some code>


if (!$mem)
{
$end = " (not on notify)";
$this -> aoc -> buddy_remove($user);
}

?>

Basically when someone logs on that's a buddy, the bot checks if they're on the notify list.  If they aren't it removes them as a buddy.

This bit of code has caused me grief more than once. :)

 

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


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


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


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 678
  • 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