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: MassMsg.php Fix  (Read 2208 times)

0 Members and 1 Guest are viewing this topic.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
MassMsg.php Fix
« 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
« Last Edit: August 28, 2007, 03:46:04 pm by Temar »

Offline Ebag333

  • Contributor
  • *******
  • Posts: 134
  • Karma: +0/-0
Re: MassMsg.php
« Reply #1 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.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: MassMsg.php Fix
« Reply #2 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

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: MassMsg.php Fix
« Reply #3 on: September 05, 2007, 03:36:38 pm »
Fix committed to SVN.

 

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