Forum

Results 1 to 2 of 2
  1. #1
    Join Date
    October 2015
    Location
    Germany, Bavaria
    Posts
    143

    [Bug?] Subscribe to more than 2 channel using servernotifyregister

    I seem to be unable to subscribe to the events of more than 2 channels using ServerQuery.

    Code:
    servernotifyregister event=channel id=1
    error id=0 msg=ok
    
    servernotifyregister event=channel id=2
    error id=0 msg=ok
    
    servernotifyregister event=channel id=3
    error id=0 msg=ok
    
    // Go to channel 1
    notifyclientmoved ctid=1 reasonid=0 clid=12
    
    // Go to channel 2
    notifyclientmoved ctid=2 reasonid=0 clid=12
    
    // Go to channel 3
    // No console output
    Is this a bug or is this wanted?
    Or maybe there is something with my server settings?

    I want my python script to be able to see channelkicks and clientmoves.
    But as far as I know I have to subscribe to a channel to see move actions in that channel.

    EDIT:
    I saw in another thread that it is wanted to limit the subscription to a single channel,
    but i'm not sure if this has changed, as I can subscribe to two channels now...
    Last edited by Jhhhj_original; September 9th, 2018 at 12:52 PM.

  2. #2
    Join Date
    October 2015
    Location
    Germany, Bavaria
    Posts
    143
    Nevermind, I found the solution!
    Appearently if you subscribe channel for channel you can only subscribe to 2 channels (at least I can only)
    But if you subscribe to the channel with the id 0 you subscribe to all channels (In some manual I read that 0 targets the whole server but it shouldn't be used or something like that, I don't quite remember).

    Code:
    servernotifyregister event=channel id=0
    // Subscribes to the event of every single channel.
    // Will appearently fire twice: First for leaving a channel and second for joining a channel (I think)
    // Fact is, it fires twice for me.
    Last edited by Jhhhj_original; September 9th, 2018 at 01:44 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How can i subscribe a channel on iOS
    By areavy in forum iOS
    Replies: 2
    Last Post: April 25th, 2019, 09:25 PM
  2. Replies: 1
    Last Post: January 15th, 2013, 04:40 PM
  3. [Resolved] Subscribe with channel rights
    By Istalantar in forum Permission System
    Replies: 4
    Last Post: April 10th, 2012, 01:32 PM
  4. servernotifyregister event=channel id=XXX buggy?
    By Scordo in forum Server Support
    Replies: 3
    Last Post: May 31st, 2010, 12:18 AM
  5. Ideas for servernotifyregister event=channel
    By Stefan1200 in forum Suggestions and Feedback
    Replies: 0
    Last Post: February 22nd, 2010, 10:30 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
  •