L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 05:24:52 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > 0.5.x Custom/Unofficial Modules > Topic: MassMsg.php Fix
Pages: [1]   Go Down
« previous next »
Print
Author Topic: MassMsg.php Fix  (Read 288 times)
0 Members and 1 Guest are viewing this topic.
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
MassMsg.php Fix
« on: August 25, 2007, 10:52:49 PM »

Problem with massmessage
it works fine for gc or pg but not both
was

Line 128

Code:
$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:
$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
« Last Edit: August 28, 2007, 08:46:04 AM by Temar » Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Ebag333
BeBot Contributor
Apprentice
*******
Offline Offline

Posts: 132


Re: MassMsg.php
« Reply #1 on: August 27, 2007, 12: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.
Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: MassMsg.php Fix
« Reply #2 on: August 28, 2007, 08:47:44 AM »

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
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: MassMsg.php Fix
« Reply #3 on: September 05, 2007, 08:36:38 AM »

Fix committed to SVN.
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > 0.5.x Custom/Unofficial Modules > Topic: MassMsg.php Fix
« previous next »
 
Jump to:  

Recent
Log playtime from buddys ...
by IKShadow
[Today at 06:48:12 AM]

[request] Raid timers
by Elesar1
[December 01, 2008, 04:41:09 PM]

Shared DB online list
by Temar
[December 01, 2008, 01:55:47 AM]

relay colors
by Temar
[December 01, 2008, 01:54:56 AM]

BeBot v0.6.0 released
by Alreadythere
[November 30, 2008, 05:32:00 PM]

Change to Bid.php
by Temar
[November 30, 2008, 11:41:44 AM]

OnlineOrg
by Jiheld
[November 29, 2008, 12:44:27 PM]

Silly Newbie Question.
by Temar
[November 29, 2008, 12:00:02 PM]

massive_pvp_time_table 1
by gerborg
[November 29, 2008, 06:55:35 AM]

Bot not see Guild Chat
by Delvar
[November 28, 2008, 08:30:34 AM]
Stats
Members
Total Members: 1244
Latest: Armonkens
Stats
Total Posts: 11145
Total Topics: 1505
Online Today: 25
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 4
Guests: 15
Total: 19
Kentarii
Agnot
Glarawyn

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.748 seconds with 28 queries. (Pretty URLs adds 0.031s, 4q)
Loading...