LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 06-29-2014, 08:55 PM   #1
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Rep: Reputation: 30
How does IRC obtain the users in a channel?


I'm on an IRC server where the command /names is not a valid command. However, on programs like mIRC and Mibbit, the users in the channel still show up on the GUI where it displays the channel users. What command is being used to obtain the user list?
 
Old 06-29-2014, 09:10 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
/who
 
Old 06-29-2014, 09:22 PM   #3
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Original Poster
Rep: Reputation: 30
/who is not a valid command either. This network has over a few million registered/active users, so I don't think /who would work either.

Last edited by SentralOrigin; 06-29-2014 at 09:24 PM.
 
Old 06-29-2014, 10:32 PM   #4
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Except /names and /who are both standard IRC commands listed in RFC specs. What network are you referring? Are you sure the client you're using simply does not support input of IRC commands in that manner?
 
Old 06-29-2014, 10:38 PM   #5
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by sag47 View Post
Except /names and /who are both standard IRC commands listed in RFC specs. What network are you referring? Are you sure the client you're using simply does not support input of IRC commands in that manner?
irc.twitch.tv

I've tried mIRC, xChat, irssi, etc. and compared the same exact commands with other IRC networks which work fine with these commands.
 
Old 06-29-2014, 10:40 PM   #6
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Code:
Irssi: Unable to connect server irc.twitch.tv port 6667 [Connection timed out]
I couldn't connect using an IRC client.

Last edited by sag47; 06-29-2014 at 10:43 PM.
 
Old 06-29-2014, 10:45 PM   #7
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by sag47 View Post
Code:
Irssi: Unable to connect server irc.twitch.tv port 6667 [Connection timed out]
I couldn't connect using an IRC client.
The server is password-protected. You need to use your twitch OAuth token as the server password (found here: http://www.twitchapps.com/tmi), and your username as your twitch username.
 
Old 06-30-2014, 08:54 AM   #8
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
In mIRC, connect to the server (but don't join any channels). Type /debug @d. Type /debug on. Type /join #channelname. Type /debug off. Switch to window @d and read through the output. That will tell you exactly what mIRC is sending and receiving.
(I did not test this today but I have done it on other servers in the past).
 
Old 06-30-2014, 09:08 AM   #9
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by AlucardZero View Post
In mIRC, connect to the server (but don't join any channels). Type /debug @d. Type /debug on. Type /join #channelname. Type /debug off. Switch to window @d and read through the output. That will tell you exactly what mIRC is sending and receiving.
(I did not test this today but I have done it on other servers in the past).
Here is the debug output:

Code:
-> tmi.twitch.tv JOIN #linux
<- :sentralorigin!sentralorigin@sentralorigin.tmi.twitch.tv JOIN #linux
-> tmi.twitch.tv MODE #linux
<- :sentralorigin.tmi.twitch.tv 353 sentralorigin = #linux :sentralorigin
<- :sentralorigin.tmi.twitch.tv 366 sentralorigin #linux :End of /NAMES list
<- :jtv!jtv@jtv.tmi.twitch.tv PRIVMSG sentralorigin :USERCOLOR sentralorigin #FFFFFF
<- :jtv!jtv@jtv.tmi.twitch.tv PRIVMSG sentralorigin :HISTORYEND linux
<- :john!john@john.tmi.twitch.tv JOIN #linux
<- :sally!sally@sally.tmi.twitch.tv JOIN #linux
<- :jim!jim@jim.tmi.twitch.tv JOIN #linux
<- :james!james@james.tmi.twitch.tv JOIN #linux
<- :arty!arty@arty.tmi.twitch.tv JOIN #linux
<- :kev!kev@kev.tmi.twitch.tv JOIN #linux
<- :blue!blue@blue.tmi.twitch.tv JOIN #linux
<- :nate!nate@nate.tmi.twitch.tv JOIN #linux
<- :owner!owner@owner.tmi.twitch.tv JOIN #linux
<- :jtv MODE #linux +o owner
-> tmi.twitch.tv PRIVMSG #linux :test
<- :sentralorigin!sentralorigin@sentralorigin.tmi.twitch.tv PART #linux
-> tmi.twitch.tv PART #linux
<- :sentralorigin!sentralorigin@sentralorigin.tmi.twitch.tv PART #linux
All of those users that joined were already in the channel before me. So I guess it's some sort of weird thing.

Last edited by SentralOrigin; 06-30-2014 at 09:21 AM.
 
Old 06-30-2014, 10:00 AM   #10
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
/userlist #channel
?
 
Old 06-30-2014, 10:06 AM   #11
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Habitual View Post
Code:
/userlist #channel
?
This one doesn't work on this server either
 
Old 06-30-2014, 01:34 PM   #12
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
It all most likely depends on the ircd being used on tmi.twitch.tv
 
Old 06-30-2014, 09:32 PM   #13
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
/names in an unknown command, but names replies are still sent upon channel join (numeric 353 and 366).

Code:
-> tmi.twitch.tv JOIN #linux
<- :forbiddenlake!forbiddenlake@forbiddenlake.tmi.twitch.tv JOIN #linux
-> tmi.twitch.tv MODE #linux
-> tmi.twitch.tv WHO #linux
-> tmi.twitch.tv MODE #linux +b
<- :forbiddenlake.tmi.twitch.tv 353 forbiddenlake = #linux :forbiddenlake
<- :forbiddenlake.tmi.twitch.tv 366 forbiddenlake #linux :End of /NAMES list
<- :jtv!jtv@jtv.tmi.twitch.tv PRIVMSG forbiddenlake :HISTORYEND linux
<- :tmi.twitch.tv 421 forbiddenlake WHO :Unknown command
-> tmi.twitch.tv NAMES #linux
<- :tmi.twitch.tv 421 forbiddenlake NAMES :Unknown command
In short, this is a heavily modified IRCd that is not RFC compliant. "All commands described in this section [3] MUST be implemented by any server for this protocol. ... 3.2.5 Names message"
 
Old 09-20-2015, 05:04 PM   #14
xcislav
LQ Newbie
 
Registered: Feb 2011
Location: Kiev, Ukraine
Posts: 25

Rep: Reputation: 0
Excuse me for disturbing this topic!
I'm just wondering if irssi client has a /debug command by which I would be able to see all the twitch users of the channel.

Last edited by xcislav; 09-21-2015 at 12:34 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IRC channel for LQ Sed_Awk LQ Suggestions & Feedback 5 12-15-2011 07:52 PM
irc channel xushi Programming 3 06-23-2004 11:33 AM
lq irc channel? rafc LQ Suggestions & Feedback 9 05-31-2004 12:40 AM
IRC Channel leeman_s LQ Suggestions & Feedback 2 08-25-2003 01:07 PM
best IRC channel? bluecadet Linux - General 1 01-17-2002 01:24 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 04:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration