spring / uberserver

uberserver, a matchmaking/chat lobby server for the spring rts project
https://springrts.com/wiki/Uberserver
Other
33 stars 38 forks source link

current channel list contains __battle__67292 #364

Closed abma closed 4 years ago

abma commented 4 years ago

looks like an error?!

to reproduce, in springlobby tools->channel list and search for battle

abma commented 4 years ago

when trying to join it:

Failed to join channel #Channel. 'battle67292' is associated to a battle, please use JOINBATTLE to access it

silentwings commented 4 years ago

this is basically intended behavior on uberserver side - it is a channel that is part of a battle, it can't be joined without joining the battle (and then joining the channel is automatic)

it appears in the channellist beause the battle founder has registered the channel, which allows them to invoke chanserv and use the associated channel admin functions (ban/mute/setkey/history/etc) within their battle

probably SL should hide channels with the format battlexxx from its displayed channel list, these are reserved channel names, i guess it should hide #moderator too

abma commented 4 years ago

ok, then why is only one battle listed?

silentwings commented 4 years ago

because the rest haven't been registered (they are unregistered channels until !register is used, which means they aren't included in the channel list)

silentwings commented 4 years ago

[21:35:25] <ChanServ> #__battle__67292 info: Anti-spam protection is off. Founder is <[Fx]Bluestone>. Operator list is empty. Currently contains 1 users and 0 bridged users.

it was me :D the test battle for my code (=my hosted battle) and the one user it currently contains is chanserv

abma commented 4 years ago

the battle doesn't exist any more?!

silentwings commented 4 years ago

the channel persists with chanserv inside, that's ok, once the battle is re-opened anyone joining the battle will also join the channel

its the same behaviour as any (temporarily) empty registered channel has, except for the restriction on who can join - battle is a derived class of channel!

abma commented 4 years ago

nice!

ok, thanks for explaining!