Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 5 of 5
  1. #1
    Join Date
    January 2011
    Posts
    8

    Red face ServerQuery Ban with client_database_id

    I was wondering if you guys could make the server query command "banclient" accept the database id as an argument.

    With that, the server could resolve the clid, and do a regular "banclient" command witch bans the UID and the IP.
    And if the client was offline do a "banadd" with the UID and IP.

    I'm requesting this because in the server logs, what is logged, comes with the database ID, and if i'm at the server viewing the logs, and i need to ban someone, and i log in via telnet, i have to manually resolve the clid, and if the client is offline also resolve the unique identifier to do a "banadd".

    If i haven't explained myself correctly, it would be something like this:
    Code:
    banclient client_database_id=5 time=3600 banreason=just\s4\sfun
    And at the same time also this would work
    Code:
    banclient clid=5 time=3600 banreason=just\s4\sfun
    Sorry if the question has already been declined, but i couldn't find it in the forums.

    Cheers : )
    Last edited by Portuga; August 27th, 2013 at 08:37 PM. Reason: Maybe now it's more understandable

  2. #2
    Join Date
    October 2003
    Location
    Germany
    Posts
    2,527
    Already possible since you can ban by client_unique_identifier.

  3. #3
    Join Date
    January 2011
    Posts
    8
    Quote Originally Posted by ScP View Post
    Already possible since you can ban by client_unique_identifier.
    How?
    The server doesn't log the client_unique_identifier, only the db id.

    Example line:
    Code:
    2013-08-27 15:49:28.556747|INFO    |VirtualServer |  1| client connected 'USER' (id:11) from 127.0.0.1
    I would like to be able to ban/kick by that id.

    If it is already possible, can someone tell me how?

  4. #4
    Join Date
    October 2003
    Location
    Germany
    Posts
    2,527
    Quote Originally Posted by Portuga View Post
    How?
    The server doesn't log the client_unique_identifier, only the db id.

    Example line:
    Code:
    2013-08-27 15:49:28.556747|INFO    |VirtualServer |  1| client connected 'USER' (id:11) from 127.0.0.1
    I would like to be able to ban/kick by that id.

    If it is already possible, can someone tell me how?
    Well... if you have the database ID, you can do a clientdbinfo or a clientgetnamefromdbid to get the unique identifier. Here's an example:

    Code:
    clientgetnamefromdbid cldbid=4
       cluid=FPMPSC6MXqXq751dX7BKV0JniSo= cldbid=4 name=ScP
    banadd uid=FPMPSC6MXqXq751dX7BKV0JniSo= banreason=just\s4\sfun
       banid=1
       error id=0 msg=ok

  5. #5
    Join Date
    January 2011
    Posts
    8
    Quote Originally Posted by ScP View Post
    Well... if you have the database ID, you can do a clientdbinfo or a clientgetnamefromdbid to get the unique identifier. Here's an example:

    Code:
    clientgetnamefromdbid cldbid=4
       cluid=FPMPSC6MXqXq751dX7BKV0JniSo= cldbid=4 name=ScP
    banadd uid=FPMPSC6MXqXq751dX7BKV0JniSo= banreason=just\s4\sfun
       banid=1
       error id=0 msg=ok
    Thank you.
    But if the feature was implemented, it would be easier and faster to ban

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. ServerQuery bot
    By zBrain in forum General Questions
    Replies: 1
    Last Post: November 19th, 2012, 07:57 AM
  2. Replies: 3
    Last Post: November 9th, 2012, 01:41 PM
  3. How do I set up my ServerQuery?
    By Dextral in forum Server Support
    Replies: 1
    Last Post: September 16th, 2012, 01:19 AM
  4. Prevent serverquery users from seeing serverquery users?
    By Morthawt in forum Permission System
    Replies: 5
    Last Post: July 16th, 2012, 09:32 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •