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: Checking if a person that logs on is in the bots org.  (Read 2391 times)

0 Members and 1 Guest are viewing this topic.

Offline Heffalomp

  • BeBot Apprentice
  • ***
  • Posts: 80
  • Karma: +0/-0
Checking if a person that logs on is in the bots org.
« on: August 17, 2009, 01:39:35 am »
Is there any efficient way of checking wether a person that logs on is a member of the bots org when it logs on?
(Not just MEMBER or higher security access, but actualy ORG member).
"Ubuntu" is an ancient African word, meaning "I can't configure Slackware"

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Checking if a person that logs on is in the bots org.
« Reply #1 on: August 18, 2009, 07:24:52 pm »
To the best of my memory i cannot recall there being a function to archieve this, but there really should be.

Could you please submitt a blueprint for a feature request on this?
BeBot Founder and Fixer Kingpin

Offline Heffalomp

  • BeBot Apprentice
  • ***
  • Posts: 80
  • Karma: +0/-0
Re: Checking if a person that logs on is in the bots org.
« Reply #2 on: August 19, 2009, 09:41:27 pm »
atleast I figured out how to do it in the module I was working on, but I suppose there would be better ways of doing it...
Code: [Select]
    /*
    This gets called if a buddy logs on/off
    */
    function buddy($name, $msg)
    { // Start function buddy()
if ($msg == 1)
{
$this -> checkup = $this -> bot -> core("whois") -> lookup($name);
if ($this -> checkup["org"] == $this -> bot -> guildname)
{
$this -> guild_online[$name] = $this -> bot -> core("whois") -> lookup($name); // Add to the guild_online array.
$this -> cron_update = TRUE; // Update the file on next cron cycle.
$this -> checkup = array();
}
}
else if (isset($this -> guild_online[$name]))
{
unset($this -> guild_online[$name]); // Remove $name from the guild_online array.
$this -> cron_update = TRUE; // Update the file on next cron cycle.
}
} // End function buddy()


Was making a rss feed of online org members (and guests), and the checking of who logging on/of and actualy was org member was giving me gray hairs for sure...
How do I go about submitting a blueprint? =)
"Ubuntu" is an ancient African word, meaning "I can't configure Slackware"

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Checking if a person that logs on is in the bots org.
« Reply #3 on: August 20, 2009, 06:52:18 am »
To submitt a blueprint (feature request) for BeBot, use the Blueprint link located under Launchpad on the left hand side menu or the Board link labeled Feature requests.

Unfortunately you will need to register an account with Launchpad to submitt bug reports and blueprints, but it goes a long way helping us keep track of issues that needs to be done.
BeBot Founder and Fixer Kingpin

Offline Heffalomp

  • BeBot Apprentice
  • ***
  • Posts: 80
  • Karma: +0/-0
Re: Checking if a person that logs on is in the bots org.
« Reply #4 on: August 20, 2009, 03:52:05 pm »
screw registering! I used my bf's account, it was allready logged on  ::)
https://blueprints.launchpad.net/bebot/+spec/bebot-buddy-orgmember
« Last Edit: August 20, 2009, 03:56:54 pm by Heffalomp »
"Ubuntu" is an ancient African word, meaning "I can't configure Slackware"

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Checking if a person that logs on is in the bots org.
« Reply #5 on: August 20, 2009, 05:09:53 pm »
Hehehe.

That works ;)
BeBot Founder and Fixer Kingpin

 

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