Forum

Results 1 to 8 of 8
  1. #1
    Join Date
    December 2009
    Location
    Germany
    Posts
    118

    TeamSpeak Query servernotifyregister

    Hello,

    some notifications like:

    - notifyclientleftview
    - notifycliententerview

    are sent twice when registering for server and channel using:

    servernotifyregister event=server
    servernotifyregister event=channel id=1

    Would you please ensure to only send a single notification?

    Thanks,
    SCO

  2. #2
    Join Date
    October 2003
    Location
    Germany
    Posts
    2,528

    TeamSpeak Query servernotifyregister

    When you register to server and channel events and a client connects/disconnects to/from the channel your ServerQuery client is currently residing in, the server will send the notifycliententerview and notifyclientleftview events twice.

  3. #3
    Join Date
    June 2008
    Location
    -
    Posts
    252
    Already reported and in our bugtracker
    Last edited by dante696; August 3rd, 2015 at 09:16 AM.

  4. #4
    Join Date
    August 2008
    Location
    The Netherlands
    Posts
    37

    TeamSpeak Query servernotifyregister

    The notifyregister is kinda broken, the events are sent twice.
    This was tested on Linux amd64 server 3.0.11.1 and server 3.0.11.3.

    When you notifyregister on all channels: servernotifyregister event=channel id=0
    You get 2 notification with the same values:
    Code:
    notifyclientmoved ctid=1 reasonid=0 clid=1
    notifyclientmoved ctid=1 reasonid=0 clid=1
    notifyclientmoved ctid=24 reasonid=0 clid=1
    notifyclientmoved ctid=24 reasonid=0 clid=1
    When you register on one channel, this happens, the correct behavior:
    Code:
    servernotifyregister event=channel id=24
    error id=0 msg=ok
    notifyclientmoved ctid=24 reasonid=0 clid=1 //Client ID 1 switched to channel ID 24
    notifyclientmoved ctid=25 reasonid=0 clid=1 //Client ID 1 switched to channel ID 25
    You can see the notifcation only being sent once.

    This brings us to another "bug", you can only notifyregister on 1 channel.
    Code:
    servernotifyregister event=channel id=24
    error id=0 msg=ok
    servernotifyregister event=channel id=25
    error id=0 msg=ok
    Both times the query response was OK.
    But if the user switches from channel ID 1 to channel ID 25, nothing happens. Only the first notifyregister on a channel is being processed.

    It would be awesome if this can be fixed: Messages being sent double when notifyregister on channel id=0 and being able to notifyregister on multiple channels at once.


    Suggestion
    Also the best implementation I can think of is using a channel to id(ctid) and a channel from id(cfid).
    For example:
    Code:
    servernotifyregister event=channel id=24
    error id=0 msg=ok
    notifyclientmoved ctid=24 cfid=25 reasonid=0 clid=1 //Client ID 1 switched to channel ID 24 from channel ID 25.
    notifyclientmoved ctid=25 cfid=24 reasonid=0 clid=1 //And back again.
    This is used in the event "notifycliententerview" and "notifyclientleftview" which is triggered if the client connects or disconnect from the channel that is registered.
    Which is rather odd because no notifyclientmoved is triggered. What would make it more consistent.
    Last edited by dante696; August 3rd, 2015 at 09:17 AM. Reason: merged

  5. #5
    Join Date
    June 2008
    Posts
    18,407
    Update
    Server 3.9.0 will change this and only print one message

    ---Original report below---

    This is a known old bug and this will not be fixed.

    The effort of men power for the result would be to great.
    Last edited by dante696; June 11th, 2019 at 11:35 AM.
    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?

  6. #6
    Join Date
    June 2011
    Location
    Germany
    Posts
    4,371
    YaTQA ignores duplicate consecutive lines. Also, the "from ID" can be retrieved by clientlist and then maintaining a list of users and their channels.

  7. #7
    Join Date
    April 2014
    Posts
    9

    Exclamation [Server Query]: Receiving duplicate response from server notify

    I'm currently trying to re-do the event system for my teamspeak bot and found out that you can subscribe to all channel events at once with:
    Code:
    servernotifyregister event=channel id=0
    It works outstandingly! However, I'm receiving duplicate responses from the server:
    Code:
    notifyclientmoved ctid=59244 reasonid=0 clid=107
    notifyclientmoved ctid=59244 reasonid=0 clid=107
    notifyclientmoved ctid=59247 reasonid=0 clid=107
    notifyclientmoved ctid=59247 reasonid=0 clid=107
    notifyclientmoved ctid=49742 reasonid=0 clid=107
    notifyclientmoved ctid=49742 reasonid=0 clid=107
    notifyclientmoved ctid=59244 reasonid=0 clid=107
    notifyclientmoved ctid=59244 reasonid=0 clid=107
    notifyclientmoved ctid=57922 reasonid=0 clid=107
    notifyclientmoved ctid=57922 reasonid=0 clid=107
    notifyclientmoved ctid=59246 reasonid=0 clid=107
    notifyclientmoved ctid=59246 reasonid=0 clid=107
    Is this a bug or intended and how do I fix this?

  8. #8
    Join Date
    June 2008
    Posts
    18,407
    Quote Originally Posted by dante696 View Post
    This is a known old bug and this will not be fixed.

    The effort of men power for the result would be to great.
    You need to filter the second line on your own to get it solved.
    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?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. TS3 servernotifyregister I have not enough permissions?
    By DarkiDev in forum Permission System
    Replies: 3
    Last Post: November 23rd, 2016, 08:42 AM
  2. Query: use servernotifyregister to listen to everything?
    By rossmann in forum Tools / Web Based
    Replies: 8
    Last Post: August 18th, 2013, 03:57 PM
  3. [Resolved] Server Query CMD "servernotifyregister" broken?!
    By seriouz in forum Linux / FreeBSD
    Replies: 2
    Last Post: October 3rd, 2012, 01:49 PM
  4. [PHP] servernotifyregister ?
    By Compix in forum General Questions
    Replies: 2
    Last Post: July 29th, 2010, 08:55 AM
  5. Possible server crash on servernotifyregister in Server Query
    By Stefan1200 in forum Linux / FreeBSD
    Replies: 0
    Last Post: February 12th, 2010, 11:22 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
  •