BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => 0.5.x Custom/Unofficial Modules => Topic started by: Temar on August 26, 2007, 05:52:49 am

Title: MassMsg.php Fix
Post by: Temar on August 26, 2007, 05:52:49 am
Problem with massmessage
it works fine for gc or pg but not both
was

Line 128

Code: [Select]
$allonline = $this -> bot -> db -> select("SELECT nickname FROM #___online WHERE botname = '" . $this -> bot -> botname . "' ORDER BY nickname ASC");
this sent the message to EVERYONE inc those offline
fix
Code: [Select]
$allonline = $this -> bot -> db -> select("SELECT nickname FROM #___online WHERE botname = '" . $this -> bot -> botname . "' AND (status_gc = 1 OR status_pg = 1) ORDER BY nickname ASC");
should work now :p
Title: Re: MassMsg.php
Post by: Ebag333 on August 27, 2007, 07:59:44 pm
Massmsg is really designed to do massive messages and/or invites.  So from what I can see of the original purpose, it's working as intended.

Spamming every person on the memberlist shouldn't be done off the online table in the first place, it should go off of #__users.
Title: Re: MassMsg.php Fix
Post by: Temar on August 28, 2007, 03:47:44 pm
When it is Set to both it will invite every on online list with botname
and because even after u logoff u are still on the list just with gc and pg set to 0
it sends the message to you
Title: Re: MassMsg.php Fix
Post by: Alreadythere on September 05, 2007, 03:36:38 pm
Fix committed to SVN.
SimplePortal 2.3.7 © 2008-2024, SimplePortal