StealthBot.net: Resolved: Problem with group stacking - StealthBot.net

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Resolved: Problem with group stacking banlist won't stack up via /add anymore...

#1 User is offline   GurkenKinG Icon

  • Emperor of TBR
  • PipPipPip
  • Group: Members
  • Posts: 268
  • Joined: October-13 09

Posted February 16, 2010 - 04:56 PM

Hey guys, I have a group called banlist, where all my bans are. I did this to order them and because I find the use of groups very helpful, I also wrote a script so when I exile and shitadd it puts the users to that group if they didn't have any access before, but that is not my problem.

My Problem is, that I can't add new people to the group via
/add username --group banlist


it responds with an error that I stacked up too many users:

Error: #28: Out of stack space in modCommandCode.ProcessCommand().

I mean, yes, my banlist is huge, very huge, because my chief didn't use clientbans but did .exile *@useast ... atleast 500 users if not 1k users on it... But non the less, I think that it's an error that at some point you can't add new users to the group anymore via the .add command, but just via the user database manager.

Using the override setting for adding shitlisted people to a group doesn't help either, still the same error.

This post has been edited by GurkenKinG: February 16, 2010 - 04:14 PM

Posted Image


Posted Image

#2 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted February 16, 2010 - 05:16 PM

Get a script made so you can store more people in a file.

#3 User is offline   GurkenKinG Icon

  • Emperor of TBR
  • PipPipPip
  • Group: Members
  • Posts: 268
  • Joined: October-13 09

Posted February 16, 2010 - 05:21 PM

I don't get exactly what you mean... but, can you do a script for this? btw, Phix could reproduce the bug when I gave him my users.txt
Posted Image


Posted Image

#4 User is offline   PhiX Icon

  • Notice the ownage.
  • Icon
  • Group: Administrators
  • Posts: 8,388,607
  • Joined: July-31 09

Posted February 16, 2010 - 05:24 PM

Confirmed. Added 2000 users ("1"-"2000") to a group called "shitlist" via exec and was still able to add users to the group. When I used the users.txt file from GurkenKinG with 1136 users in the group "banlist" I got the same error.

File attached.

Attached File(s)

  • Attached File  users.txt (146.7K)
    Number of downloads: 433

PhiX

BNLS: phix.no-ip.org

Please refrain from sending me personal messages regarding technical support issues. Use the forums, that is what they are there for.

#5 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted February 16, 2010 - 05:25 PM

Yeah gimme a minute or two.

#6 User is offline   PhiX Icon

  • Notice the ownage.
  • Icon
  • Group: Administrators
  • Posts: 8,388,607
  • Joined: July-31 09

Posted February 16, 2010 - 05:27 PM

View PostThe-Black-Ninja, on 16 February 2010 - 06:25 PM, said:

Yeah gimme a minute or two.
A script would only be a workaround. This error must be fixed nonetheless.
PhiX

BNLS: phix.no-ip.org

Please refrain from sending me personal messages regarding technical support issues. Use the forums, that is what they are there for.

#7 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted February 16, 2010 - 05:29 PM

Hmm...okay, I'll wait and see then.

#8 User is offline   GurkenKinG Icon

  • Emperor of TBR
  • PipPipPip
  • Group: Members
  • Posts: 268
  • Joined: October-13 09

Posted February 16, 2010 - 05:30 PM

View PostThe-Black-Ninja, on 16 February 2010 - 06:29 PM, said:

Hmm...okay, I'll wait and see then.

Sure, it's an error that needs to be fixed, but a workaround for me would be still nice :D
Posted Image


Posted Image

#9 User is offline   PhiX Icon

  • Notice the ownage.
  • Icon
  • Group: Administrators
  • Posts: 8,388,607
  • Joined: July-31 09

Posted February 16, 2010 - 05:40 PM

Yeah, I didn't want to stop you from providing a workaround, Heather. It was more of a note for the devs.
PhiX

BNLS: phix.no-ip.org

Please refrain from sending me personal messages regarding technical support issues. Use the forums, that is what they are there for.

#10 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted February 16, 2010 - 05:42 PM

Workaround. Very simple and not overly complex, it's just meant to do the job, nothing fancy. I wrote it on my lunch break, so hopefully no errors!

Commands: addban <user>, remban <user>, all 200 access by default.
Actions: Adds/removes users from ban list, bans banlisted users on join.
Script("Name") = "Big Ban List"
Script("Author") = "The_Black_Ninja"
Script("Major") = 1
Script("Minor") = 0

Private banFP

Sub Event_Load()

   banFP = BotPath & "banlist.ini"

   Set cmd = OpenCommand("addban")
   If cmd IS Nothing Then
      With cmd
         Set Parameter = .NewParameter("username", False, "Word")
         .Parameters.Add Parameter
         .Description = "User to be banned."
         .RequiredRank = 200
         .Save
      End With
   End If
   
   Set cmd = OpenCommand("remban")
   If cmd IS Nothing Then
      With cmd
         Set Parameter = .NewParameter("username", False, "Word")
         .Parameters.Add Parameter
         .Description = "User to be unbanned."
         .RequiredRank = 200
         .Save
      End With
   End If   

   Set cmd = Nothing
   Set Parameter = Nothing
End Sub


Sub Event_Command(cmd)

   Select Case Lcase(cmd)
      Case "addban": Call addban_cmd(cmd)
      Case "remban": Call remban_cmd(cmd)
   End Select
End Sub

Sub Event_Userjoins(Username, Flags, Message, Ping, Product, Level, OSS)

   If (LenB(GetConfigEntry("users", Username, banFP))>0) Then Command BotVars.Username, "/ban " & Username, True
End Sub


Private Sub addban_cmd(cmd)

   If (cmd.HasAccess AND cmd.IsValid) Then
      user = cmd.Argument("username")
      If (LenB(GetConfigEntry("users", user, banFP))=0) Then
         WriteConfigEntry "users", user, cmd.Username, banFP
         cmd.Respond user & " was placed on the banlist."
      Else
         cmd.Respond user & " is already on the banlist."         
      End If
   End If
End Sub


Private Sub remban_cmd(cmd)

   If (cmd.HasAccess AND cmd.IsValid) Then
      user = cmd.Argument("username")
      If (LenB(GetConfigEntry("users", user, banFP))>0) Then
         WriteConfigEntry "users", user, vbNullString, banFP
         cmd.Respond user & " was removed from the banlist."
      Else
         cmd.Respond user & " is not on the banlist."         
      End If
   End If
End Sub


#11 User is offline   GurkenKinG Icon

  • Emperor of TBR
  • PipPipPip
  • Group: Members
  • Posts: 268
  • Joined: October-13 09

Posted February 17, 2010 - 10:02 PM

Thx TBN :D But anyway, any chance for a fixed vers soon? (A next stable would be ever good, but a working build vers is also fine ;) )
Posted Image


Posted Image

#12 User is offline   7thAce Icon

  • Find me elsewhere (Inactive)
  • Icon
  • Group: Tech Support Moderators
  • Posts: 1,292
  • Joined: August-18 09

Posted February 17, 2010 - 10:08 PM

Probably on the next build. Whenever Hdx feels like finding and fixing the bug is probably a more exact answer. :/
Posted Image
7thAce.no-ip.org: Posted Image
Official SB Tech @ Clan SBs USEast
Just a note to all you people who want to give Tech Support: Post with correct info (only - no info is better than wrong info), contribute to the topic, and be clear (the more explanation, the better).

#13 User is offline   7thAce Icon

  • Find me elsewhere (Inactive)
  • Icon
  • Group: Tech Support Moderators
  • Posts: 1,292
  • Joined: August-18 09

Posted February 17, 2010 - 10:08 PM

Moved to Known Bugs.

I have marked this topic as resolved. If you did not receive a satisfactory response please reply and provide as much relevant information as possible.
Posted Image
7thAce.no-ip.org: Posted Image
Official SB Tech @ Clan SBs USEast
Just a note to all you people who want to give Tech Support: Post with correct info (only - no info is better than wrong info), contribute to the topic, and be clear (the more explanation, the better).

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users