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?
October 06, 2008, 08:39:38 AM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Support for older versions > BeBot 0.2 support > Topic: Private group problems
Pages: [1]   Go Down
« previous next »
Print
Author Topic: Private group problems  (Read 651 times)
0 Members and 1 Guest are viewing this topic.
Foxy
Rookie
**
Offline Offline

Posts: 33


Private group problems
« on: April 24, 2007, 07:37:51 AM »

Ive had this problem for a while now, but cant seem to solve whats doing it.

i am running bebot as a Guild bot, We have friends out the guild that we would like on the private group.

Every time someone joins the Private group, They get kicked out of the private group after about 10secs.

I have updated to the latest version to see if it would solve the issue, but still wont work.


I run bot on a linux Shell server using putty.

Ive checked the logs but it dont say anywhere when they were kicked and why.

[2007-04-12 07:10:50]   [TELL]   [INC]   Foxytrader: !invite aopvp
[2007-04-12 07:10:50]   [TELL]   [OUT]   -> Aopvp: You have been invited to the privategroup by Foxytrader.
[2007-04-12 07:10:50]   [TELL]   [OUT]   -> Foxytrader: Aopvp has been invited to guest/raid chat by Foxytrader.
[2007-04-12 07:10:50]   [PGRP]   [MSG]   [Cjbot] Cjbot: Aopvp has been invited to guest/raid chat by Foxytrader.
[2007-04-12 07:10:54]   [PGRP]   [JOIN]   Aopvp joined privategroup.
[2007-04-12 07:11:05]   [PGRP]   [MSG]   [Cjbot] Aopvp: test
[2007-04-12 07:11:05]   [PGRP]   [MSG]   [Cjbot] Cjbot: Aopvp joined the privategroup.

Then aopvp got kicked for no reason..

Logged
Naturalistic
BeBot Contributor
Experienced
*******
Offline Offline

Posts: 221


Re: Private group problems
« Reply #1 on: April 25, 2007, 12:07:03 AM »

Which version of bot are you using?

And if you've modded anything in the PrivGroup module, can you post that so we could get an idea as to what might be causing that problem?
Logged

220/25 Eternalist Doctor
-----------------------------
Campalot Coding Co-ordinator and Super Admin
http://www.campalot.info/index.php
Foxy
Rookie
**
Offline Offline

Posts: 33


Re: Private group problems
« Reply #2 on: April 25, 2007, 03:27:02 AM »

BeBot v0.2.11

Code: (PrivGroup.php)
<?
/*
* PrivGroup.php - Basic featureset for private group handeling (join/kick etc)
*
* BeBot - An Anarchy Online Chat Automaton
* Copyright (C) 2004 Jonas Jax
*
* Developed by Blondengy (RK1)
* Special thanks goes out to Khalem (RK1) for his support.
*
* File last changed at $LastChangedDate: 2005-12-12 19:34:04 -0500 (Mon, 12 Dec 2005) $
* Revision: $Id: PrivGroup.php 37 2005-12-13 00:34:04Z shadowmaster $
*/


$privgroup = new PrivGroup($bot);


$commands["tell"]["join"] = &$privgroup;
$commands["tell"]["chat"] = &$privgroup;
$commands["tell"]["leave"] = &$privgroup;
$commands["tell"]["invite"] = &$privgroup;
$commands["tell2"]["leave"] = &$privgroup;
$commands["pgmsg"]["leave"] = &$privgroup;
$commands["pgmsg"]["invite"] = &$privgroup;
$commands["pgmsg"]["kick"] = &$privgroup;
$commands["gc"]["join"] = &$privgroup;



/*
The Class itself...
*/
class PrivGroup
{
var $bot;



/*
Constructor:
Hands over a referance to the "Bot" class.
*/
function PrivGroup (&$bot)
{
$this -> bot = &$bot;
}



/*
This gets called on a tell with the command
*/
function tell($name, $msg)
{
if (preg_match("/^" . $this -> bot -> commpre . "join/i", $msg))
$this -> bot -> aoc -> privategroup_invite($name);
else if (preg_match("/^" . $this -> bot -> commpre . "chat/i", $msg))
$this -> bot -> aoc -> privategroup_invite($name);
else if (preg_match("/^" . $this -> bot -> commpre . "invite$/i", $msg))
$this -> bot -> aoc -> privategroup_invite($name);
else if (preg_match("/^" . $this -> bot -> commpre . "leave/i", $msg))
$this -> bot -> aoc -> privategroup_kick($name);
else if (preg_match("/^" . $this -> bot -> commpre . "invite (.+)$/i", $msg, $info))
$this -> invite($name, "tell", $info[1]);
else
$this -> bot -> send_help($name);
}



/*
This gets called on a tell with the command from person outside guild
*/
function tell2($name, $msg)
{
$this -> bot -> aoc -> privategroup_kick($name);
}



/*
This gets called on a msg in the privgroup with the command
*/
function pgmsg($name, $msg)
{
if (preg_match("/^" . $this -> bot -> commpre . "leave/i", $msg))
$this -> bot -> aoc -> privategroup_kick($name);
else if (preg_match("/^" . $this -> bot -> commpre . "invite (.+)$/i", $msg, $info) && ($this -> bot -> is_member($name)))
$this -> invite($name, "pgmsg", $info[1]);
else if (preg_match("/^" . $this -> bot -> commpre . "kick (.+)$/i", $msg, $info) && ($this -> bot -> is_member($name)))
$this -> kick($name, $info[1]);
}



/*
This gets called on a msg in the guildchat with the command
*/
function gc($name, $msg)
{
if (preg_match("/^" . $this -> bot -> commpre . "join/i", $msg))
$this -> bot -> aoc -> privategroup_invite($name);
}



/*
Kicks a user
*/
function kick($name, $who)
{
if ($this -> bot -> raidbot || $this -> bot -> admin -> in_group($name, "admin") ||
$this -> bot -> admin -> in_group($name, "raidleader"))
$this -> bot -> aoc -> privategroup_kick($who);
else
$this -> bot -> send_tell($name, "You do not have permission to kick someone.");
}



/*
Invite a user to private group.
*/
function invite($from, $type, $who)
{
if (($this -> bot -> guildbot && $this -> bot -> is_member($from)) ||
$this -> bot -> admin -> in_group($from, "raidleader") ||
$this -> bot -> admin -> in_group($from, "admin") ||
$this -> bot -> admin -> in_group($from, "superadmin"))
{
$msg = "Player <font color=#ffff00>" . $who . "</font> does not exist.";
if ($this -> bot -> aoc -> get_uid($who))
{
$this -> bot -> aoc -> privategroup_invite($who);
$this -> bot -> send_tell($who, "You have been invited to the privategroup by " . $from . ".");
$msg = "<font color=#ffff00>" . $who . "</font> has been invited.";
}
}
else
$msg = "You do not have permission to use this command.";


if ($type == "tell")
$this -> bot -> send_tell($from, $msg);
else
$this -> bot -> send_pgroup($msg);
}
}
?>
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1052


Re: Private group problems
« Reply #3 on: April 25, 2007, 04:32:31 AM »

I can't see any reason why users are kicked again tbh.

Looks all like it should.
Logged
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: Private group problems
« Reply #4 on: April 25, 2007, 06:18:04 AM »

You don't have an extremely spammy welcome message or something which could cause the guy to be disconnected from the chat server?

-jj-
Logged
Foxy
Rookie
**
Offline Offline

Posts: 33


Re: Private group problems
« Reply #5 on: April 25, 2007, 07:31:33 AM »

when i join the private group i get no welcome msg's appear.
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Support for older versions > BeBot 0.2 support > Topic: Private group problems
« previous next »
 
Jump to:  

Recent
!items database
by cthulhu
[October 05, 2008, 11:36:16 AM]

Supplies needed module
by viper
[October 05, 2008, 11:11:13 AM]

Assist
by Foxy
[October 05, 2008, 05:09:02 AM]

How's 0.5.x coming? Wonde...
by Hyde
[October 04, 2008, 04:59:20 PM]

TWC
by Elesar1
[October 04, 2008, 12:55:59 PM]

Org in AoC
by Alreadythere
[October 04, 2008, 04:50:00 AM]

OnlineOrg
by Slacklin
[October 04, 2008, 03:06:00 AM]

Learning .NET, Mono, C#, ...
by Vhab
[October 04, 2008, 02:39:03 AM]

guild taxes module for ag...
by Elesar1
[October 03, 2008, 09:06:09 AM]

MediaControl
by Elesar1
[October 03, 2008, 08:38:18 AM]
Stats
Members
Total Members: 983
Latest: Titerris
Stats
Total Posts: 10740
Total Topics: 1448
Online Today: 15
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 1
Guests: 34
Total: 35
Karsta

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