• Welcome to Valhalla Legends Archive.
 

TagBans

Started by CrAz3D, June 05, 2003, 10:15 PM

Previous topic - Next topic

Camel

memset(&DarkMinion, 0, sizeof(ego::huge));

Zakath

Huge is static? Seems a little inflexible to me. :)
Quote from: iago on February 02, 2005, 03:07 PM
Yes, you can't have everybody...contributing to the main source repository.  That would be stupid and create chaos.

Opensource projects...would be dumb.

DarkMinion

Camel = pot.kettle.black();

Try evaluating yourself first  ;)

Camel

if(Camel < DarkMinion)
   Camel->Seppuku();

CrAz3D

Alrighty then, I've got it half way there....my problem is that the bot uses the taglist & compare entire name to it.  If the entire name matches, only then will it ban the user upon entering.

Any help?

Public Function GetTags(ByVal strAccount As String) As Boolean
Dim found As Boolean
For DF = 1 To frmDB.TagBans.ListCount
   If LCase(strAccount) Like LCase(frmDB.TagBans.List(DF)) Then
       found = True
       Exit For
   Else
       found = False
   End If
Next DF
GetTags = found
End Function

That's what I got.....& this is what is under Event_Join

   If Commands.GetTags(strAccount) = True Then
       Send "/ban " & strAccount & " TagBan"
       BanCount = bancoun + 1
       UpdateBanCount
   End If

I'm lookin' for a point in the right direction from here please.
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

Camel

Step 1: Option Explicit.

Eibro

Quote from: Zakath on June 25, 2003, 09:19 PM
Huge is static? Seems a little inflexible to me. :)
It doesn't necessarily have to be static, it could be part of namespace ego :)
Eibro of Yeti Lovers.

CrAz3D

Quote from: Camel on June 26, 2003, 11:00 AM
Step 1: Option Explicit.
?....What do I need to do in there?............& why?
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

Dr.JaY

If you're serious, then don't attempt a bot yet.

CrAz3D

I have everything that I need declared already, I don't beleive I need an Option Explicit.
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

Camel

#55
Quote from: CrAz3D on June 27, 2003, 08:44 AM
I have everything that I need declared already, I don't beleive I need an Option Explicit.

I am a good driver, but I still wear a seatbelt!

[edit] Go in to vb options and do yourself two huge favors: 1) Turn on "require variable declaration;" this will automaticly add Option Explicit to new project files. 2) Set it to prompt you to save your work every time you start your app. It's a pain losing work, especially when SetTimer crashes vb. :(

Camel

Quote from: Eibro on June 26, 2003, 11:57 AMIt doesn't necessarily have to be static, it could be part of namespace ego :)
+1 to Eibro for picking up on the namespace first. :)

|