Mode <unknown> displayed for +k channel, instead of results of /mode command

NEW
Assigned to

Status

Other Applications
ChatZilla
4 years ago
4 years ago

People

(Reporter: Wikiwide, Assigned: Robert Ginda)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0
Build ID: 20130911042038

Steps to reproduce:

Found a +k channel.
Tried to /join the channel.
Typed /mode channel


Actual results:

A new tab for the channel was opened.
The Mode of the channel is displayed as <unknown>
/mode gives mode of the channel, not unknown.


Expected results:

A new tab for the channel was opened.
The Mode of the channel is displayed the same as results of /mode
/mode gives mode of the channel, not unknown.
Reproduced.
Status: UNCONFIRMED → NEW
Ever confirmed: true

Comment 2

4 years ago
That's weird, the *server* is meant to send you the mode automatically when you join any channel, so either that isn't happening (what server has this happened on?) or we're discarding the mode message for some reason (try running with /console and window.dump() enabled).
Version: unspecified → Trunk
The server does not send the MODE, because the user does not JOIN the channel before he knows the key.
Then the user types MODE by hand but the mode does not show up in the ChatZilla interface (header).

Therefore yes to both, the MODE isn't shown automatically, and we are discarding the mode message for some reason. The former isn't the problem though. The latter is.

I can reproduce the issue here at irc.mozilla.org.  Dumped logs follow — with debugMode set to cnt — please, let me know if that's not the information you're looking for.


I type /join #chan_with_key
[INFO] This channel needs a key. You must provide the correct key to join the channel. See "/help join" for details on joining a channel with a key.

data   : 'JOIN #chan_with_key \n'
cz: Level 1: 'data-available', server[irc.mozilla.org].onDataAvailable
cz: Level 1: 'rawdata', server[irc.mozilla.org].onRawData
data   : ':fripp.mozilla.org 475 mynickname #chan_with_key :Cannot join channel (Incorrect channel key)'
cz: Level 2: 'parseddata', server[irc.mozilla.org].onParsedData
cz: Level 3: '475', network[moznet].onUnknown
cz: Level 1: 'senddata', server[irc.mozilla.org].onSendData

I type /mode #chan_with_key; CZ prints it in the channel view but not in the header
[MODE] Mode for #chan_with_key is +knt <key>

data   : 'MODE #chan_with_key \n'
cz: Level 1: 'data-available', server[irc.mozilla.org].onDataAvailable
cz: Level 1: 'rawdata', server[irc.mozilla.org].onRawData
data   : ':fripp.mozilla.org 324 mynickname #chan_with_key +knt <key>'
cz: Level 2: 'parseddata', server[irc.mozilla.org].onParsedData
cz: Level 3: '324', server[irc.mozilla.org].on324
cz: Level 4: 'chanmode', server[irc.mozilla.org].onChanMode
cz: Level 5: 'chanmode', channel[#chan_with_key].onChanMode
cz: Level 1: 'rawdata', server[irc.mozilla.org].onRawData
data   : ':fripp.mozilla.org 329 mynickname #chan_with_key 1417785606'
cz: Level 2: 'parseddata', server[irc.mozilla.org].onParsedData
cz: Level 3: '329', server[irc.mozilla.org].on329
cz: Level 4: '329', channel[#chan_with_key].on329
cz: Level 1: 'senddata', server[irc.mozilla.org].onSendData

I type /join #chan_with_key key, I join, the header updates ok
[JOIN] YOU (mynickname) have joined #chan_with_key

data   : 'JOIN #chan_with_key key\n'
cz: Level 1: 'data-available', server[irc.mozilla.org].onDataAvailable
cz: Level 1: 'rawdata', server[irc.mozilla.org].onRawData
data   : ':mynickname!chatzilla@moz-cinh11.myisp.net JOIN :#chan_with_key'
cz: Level 2: 'parseddata', server[irc.mozilla.org].onParsedData
cz: Level 3: 'join', server[irc.mozilla.org].onJoin
cz: Level 4: 'join', channel[#chan_with_key].onJoin
cz: Level 1: 'rawdata', server[irc.mozilla.org].onRawData
data   : ':fripp.mozilla.org 353 mynickname = #chan_with_key :@gry mynickname '
cz: Level 2: 'parseddata', server[irc.mozilla.org].onParsedData
cz: Level 3: '353', server[irc.mozilla.org].on353
cz: Level 4: '353', channel[#chan_with_key].on353
cz: Level 1: 'rawdata', server[irc.mozilla.org].onRawData
data   : ':fripp.mozilla.org 366 mynickname #chan_with_key :End of /NAMES list.'
cz: Level 2: 'parseddata', server[irc.mozilla.org].onParsedData
cz: Level 3: '366', server[irc.mozilla.org].on366
cz: Level 4: '366', channel[#chan_with_key].on366
cz: Level 1: 'senddata', server[irc.mozilla.org].onSendData
data   : 'MODE #chan_with_key\n'
cz: Level 1: 'data-available', server[irc.mozilla.org].onDataAvailable
cz: Level 1: 'rawdata', server[irc.mozilla.org].onRawData
data   : ':fripp.mozilla.org 324 mynickname #chan_with_key +knt key'
cz: Level 2: 'parseddata', server[irc.mozilla.org].onParsedData
cz: Level 3: '324', server[irc.mozilla.org].on324
cz: Level 4: 'chanmode', server[irc.mozilla.org].onChanMode
cz: Level 5: 'chanmode', channel[#chan_with_key].onChanMode
cz: Level 1: 'rawdata', server[irc.mozilla.org].onRawData
data   : ':fripp.mozilla.org 329 mynickname #chan_with_key 1417785606'
cz: Level 2: 'parseddata', server[irc.mozilla.org].onParsedData
cz: Level 3: '329', server[irc.mozilla.org].on329
cz: Level 4: '329', channel[#chan_with_key].on329
cz: Level 1: 'senddata', server[irc.mozilla.org].onSendData
data   : 'MODE #chan_with_key +b\n'
cz: Level 1: 'senddata', server[irc.mozilla.org].onSendData
data   : 'MODE #chan_with_key +e\n'
cz: Level 1: 'data-available', server[irc.mozilla.org].onDataAvailable
cz: Level 1: 'rawdata', server[irc.mozilla.org].onRawData
data   : ':fripp.mozilla.org 368 mynickname #chan_with_key :End of channel ban list'
cz: Level 2: 'parseddata', server[irc.mozilla.org].onParsedData
cz: Level 3: '368', server[irc.mozilla.org].on368
cz: Level 4: '368', channel[#chan_with_key].on368
cz: Level 1: 'data-available', server[irc.mozilla.org].onDataAvailable
cz: Level 1: 'rawdata', server[irc.mozilla.org].onRawData
data   : ':fripp.mozilla.org 482 mynickname #chan_with_key :You do not have access to view the +e list'
cz: Level 2: 'parseddata', server[irc.mozilla.org].onParsedData
cz: Level 3: '482', server[irc.mozilla.org].on482
cz: Level 4: '482', channel[#chan_with_key].on482
cz: Level 1: 'rawdata', server[irc.mozilla.org].onRawData
data   : ':fripp.mozilla.org 349 mynickname #chan_with_key :End of Channel Exception List'
cz: Level 2: 'parseddata', server[irc.mozilla.org].onParsedData
cz: Level 3: '349', server[irc.mozilla.org].on349
cz: Level 4: '349', channel[#chan_with_key].on349

Comment 4

4 years ago
Oh, that's not what I thought the bug report was about. If you are not in the channel yet, <unknown> is the correct display in the header (in fact, the whole header except URL should be indeterminate/empty/zero).

As long as providing the key subsequently updates the header (when you actually join the channel), there is no bug here.
You need to log in before you can comment on or make changes to this bug.