• Welcome to Valhalla Legends Archive.
 

Some way to check a user's server on ban...

Started by Loud, July 29, 2005, 09:42 PM

Previous topic - Next topic

Loud

Ok, I am making a moderation bot, and I want it to be able to unban any user that is banned (by any other moderation bot), but I have run into a problem! When a user is banned, it does not say the user's server...

This is kind of fucked up to read, so here's the example:

Quote
<User1@Server1> .ban User2@Server2
User2 has been banned by User1!

Basically, if you ban a user on STAR/W2BN/D2 from WAR3, it just says the username has been banned, it does not say @USWest, which poses a problem because I pick through the "User2 has been banned..." message, to get User2's name...

I have only thought up 1 possible way to deal with this, and I want your commentary, because often enough, my way is not the best nor the smartest way.

I am thinking if I record the last user to leave, then when a ban message is detected, it will add the last user to leave to the list (because usually the last user to leave after a ban message is recieved, is the banned user!)...

And uhhh that's it. Your thoughts/ ruthless commentary please?

LivedKrad

#1
Have the bot cycle through the list of possible gateway extensions, all two of them.

USEast:
@Azeroth
@USEast

USWEST:
@Lordaeron
@USWest

EUROPE and ASIA:
@Europe and @Northrend, I don't know the others (if there are any).

Loud

Cycling through them would do me what good...?  ???

I don't grasp what you just said at alllll bro... Do you mean have it add both? Or what? I NEED USEFUL COMMENTARY GUYS...

Kp

Do what I do: ban the usage of name-mangled products.  Then you know the gateway is @USEast, since *@Azeroth is always banned and therefore never deserving of an unban. :)
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

Loud

I would... But my clan may think I am strung out on crack if I suddenly start banning users with the reason "THEIR NAME CONTAINED @AZEROTH!"...

You know how that goes Kp  :P

Kp

So don't give a reason.  Just silently ban them and don't waste time explaining why. :)
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

Loud

Lmaonaise!

Kp, this is the first time I haven't gotten slammed with "OMFGZ U R TEH NUB!"... But I also haven't gotten any helpful commentary, what gives? I know you aren't in Visual Basic 6, but can't you command some of the forum junkies to give me input/advice?  ;D

Hdx

Sounds to me that Checking the Last user who exited would work. But also Simply Unbanning both realms would work to.
Yes it's an extra message sent out, And an error reported back (That user Is not logged in) but it's the simplest way to go.
~-~(HDX)~-~

Proud host of the JBLS server www.JBLS.org.
JBLS.org Status:
JBLS/BNLS Server Status

R.a.B.B.i.T

The simplest way is to check the next EID_LEAVE message recieved.  99.999999999999999999999999999998% of the time it will be the last person banned or kicked.

LivedKrad

#9
Quote from: HdxBmx27 on July 30, 2005, 12:23 AM
But also Simply Unbanning both realms would work to.

Quote from: LivedKrad.fe on July 29, 2005, 09:54 PM
Have the bot cycle through the list of possible gateway extensions, all two of them.

USEast:
@Azeroth
@USEast

USWEST:
@Lordaeron
@USWest

EUROPE and ASIA:
@Europe and @Northrend, I don't know the others (if there are any).

What I meant, Loud, is that there are only two possible gateway extensions after someone is banned. Either it is "@Azeroth,Lordaeron,Northrend" or it is "@USWest, @USEast, or @Europe". All you have to do is ban/unban the name + both extensions, and voila. You have added support to unban/ban Warcraft III / TFT, Diablo II, Diablo II: LoD, Starcraft, Starcraft: Broodwar, Starcraft Japan, Starcraft Shareware, Diablo Shareware, Diablo Retail and Wacraft II: Battle.net Edition clients!

Quote from: Loud on July 29, 2005, 10:00 PM
Cycling through them would do me what good...? ???

I don't grasp what you just said at alllll bro... Do you mean have it add both? Or what? I NEED USEFUL COMMENTARY GUYS...

I don't see how my comment can be any more useful if you don't understand what I'm trying to convey.

Loud

Ahhh, I see, sorry I was half asleep while I was posting last night, hmmmmmmmmm maybe doing it with both servers is the correct way to go... It would mean I would have to change the list to reset after 312 instead of 156 (Isn't 156 ban limit?)... But that's no problem. Well, thanks for your suggestions... =P Now time to go code my lame mod bot, peace.

Eric


Loud

You sure about that...? I have heard that one too, but I don't think it's true because I have seen 10 ops unable to hold back 400-500 bot loads...

Eric


R.a.B.B.i.T

Quote from: Loud on July 30, 2005, 01:12 PM
You sure about that...? I have heard that one too, but I don't think it's true because I have seen 10 ops unable to hold back 400-500 bot loads...
Proxies, man.