Forum

Results 1 to 9 of 9
  1. #1
    Join Date
    July 2015
    Posts
    7

    Deny sending a private message to a server query

    I have a bot connected via ServerQuery (different tasks, alert when user XY comes online etc.), the bot has its own server group.
    Since I only want to enable the bot for regulars on my server I set the i_client_needed_serverquery_view_power high enough, so other people cannot see him.
    The problem is when the bot writes something in the chat people can click on the name and send a message to it without seeing the bot in the channel list.
    So I set the i_client_needed_private_textmessage_power high enough to prevent that but it seems that it does not work.
    When I assign myself to the bot group people can no longer send me a message.
    So, does the i_client_needed_private_textmessage_power not work on ServerQuery clients?
    I don't really want to rewrite the code of the bot to check if someone who sends a message is actually one of the regulars.

  2. #2
    Join Date
    June 2008
    Posts
    18,293
    Nobody can write to the ServerQuery as long he did not subscribe private messages events (servernotifyregister event=textprivate).
    Does not matter which i_client_needed_private_textmessage_power is set into the Query group.

    The user will recive "This ServerQuery client did not register for the private text message event using "servernotifyregister event=textprivate". The text message was not received.".

    And the i_client_needed_private_textmessage_power also works as expected.
    I could not write any private message to the Query, as long 1. he did not send a private message to me before or 2. I did raise my i_client_private_textmessage_power to 100.

    So you have 2 otions now:
    1. Do not enable the event textprivate
    or 2. do not send private messages to these users before.
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  3. #3
    Join Date
    June 2011
    Location
    Germany
    Posts
    4,368
    Is this a general feature in TeamSpeak that you can reply to people who texted you regardless of text message power?

  4. #4
    Join Date
    June 2008
    Posts
    18,293
    Yes it is.

    The i_client_needed_private_textmessage_power of the target (maybe also your i_client_private_textmessage_power) is ignored and you are able to reply as long the sender did not close the private chat to you.

    A disconnect or timeout from any of the users also does close the chat to the target.
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  5. #5
    Join Date
    July 2015
    Posts
    7
    Thank you for your answer.
    Quote Originally Posted by dante696 View Post
    And the i_client_needed_private_textmessage_power also works as expected.
    I could not write any private message to the Query, as long 1. he did not send a private message to me before or 2. I did raise my i_client_private_textmessage_power to 100.
    group bot:
    i_client_needed_private_textmessage_power 75
    group serveradmin:
    i_client_private_textmessage_power 75
    group normal:
    i_client_private_textmessage_power 50

    So when I assign my main account to the bot group and connect a second time to my server (using a new identity with permissions "normal") and try to talk to the main account in the bot group i get the (expected) error "insufficient client permissions (i_client_needed_private_textmessage_power)"
    However, when I try to talk to the query (which has, for testing purposes, the exact same groups (bot and channel admin) as my main account ) I do not get an insufficient client permissions error. Even when the bot has not written anything previously (not in all chat, not in channel and no private message to the second account (with "normal" permissions).
    Maybe you could post me your minimal working example? Maybe i missed a skip flag or something?

    Quote Originally Posted by dante696 View Post
    So you have 2 otions now:
    1. Do not enable the event textprivate
    Not feasible, because then no one (not even server admin) can use the bot, right?
    Quote Originally Posted by dante696 View Post
    or 2. do not send private messages to these users before.
    Does this include messages send in all chat or in the channel chat? The bot never wrote anything in private to a non-authorized user.

    Regards

  6. #6
    Join Date
    June 2008
    Posts
    18,293
    Quote Originally Posted by SackZement View Post
    Does this include messages send in all chat or in the channel chat? The bot never wrote anything in private to a non-authorized user.
    This counts for private messages only.

    Set b_client_skip_channelgroup_permissions to the bots group, if you havn't before.
    I have no clue left, because the setup worked as it should in my tests.
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  7. #7
    Join Date
    July 2015
    Posts
    7
    It looks like I had send some kind of private message to the testing identity a long time ago and didn't remember.
    I made another identity to test things and everything was working flawlessly.
    Sorry for wasting your time and thanks for the help.

  8. #8
    Join Date
    June 2008
    Posts
    18,293
    Normally the chat counts as closed then.
    I never tested something like that on the Query.

    Is it fixed for you now?
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  9. #9
    Join Date
    July 2015
    Posts
    7
    Yes everything is working as expected with the newly created identity so i presume this will work with other (real) clients as well.
    Still wondering how i whispered anything to the identity i was testing first with, since the bot only whispers back to people whispering him..

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sending a server wide Modal Message?
    By Tormidal in forum Server Support
    Replies: 5
    Last Post: April 18th, 2013, 08:01 AM
  2. Replies: 4
    Last Post: January 28th, 2013, 08:26 PM
  3. [Resolved] how deny private text message for guests?
    By farid in forum Permission System
    Replies: 4
    Last Post: January 7th, 2012, 12:44 PM
  4. Bot sending a message
    By kisiolkisiol in forum General Questions
    Replies: 0
    Last Post: December 7th, 2011, 12:42 AM
  5. Replies: 0
    Last Post: January 5th, 2010, 12:20 AM

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
  •