# Users list in IRC clients missing for me?

**URL:** <https://discuss.dev.twitch.com/t/users-list-in-irc-clients-missing-for-me/2525>\
**Category:** Chat and IRC\
**Created:** [June 16, 2015, 7:32am UTC](https://discuss.dev.twitch.com/t/users-list-in-irc-clients-missing-for-me/2525 "2015-06-16T07:32:26Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Liands](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@Liands](https://discuss.dev.twitch.com/u/Liands)\
**Post date:** [June 16, 2015, 10:06pm UTC](https://discuss.dev.twitch.com/t/users-list-in-irc-clients-missing-for-me/2525/21 "2015-06-16T22:06:38Z")

</div>

I already used the / raw CAP REQ: [twitch.tv/commands](http://twitch.tv/commands) and / raw CAP REQ: [twitch.tv/membership](http://twitch.tv/membership) nor the JOIN / PART functions still work or new commands are recognized as valid within the mIRC

---

<div class="post-metadata">

**Author:** ![coldblood3d](https://avatars.discourse-cdn.com/v4/letter/c/5f8ce5/32.png) [@coldblood3d](https://discuss.dev.twitch.com/u/coldblood3d)\
**Post date:** [June 17, 2015, 5:48am UTC](https://discuss.dev.twitch.com/t/users-list-in-irc-clients-missing-for-me/2525/22 "2015-06-17T05:48:04Z")

</div>

The commands added (USERSTATE, …) are sent to you by the server. Whenever someone joins the channel or sends a message to your channel those add additional information for you to work with.

Right now the server does not send any JOIN/PART commands your way and thus also not the other ones. Once CAP REQ: [twitch.tv/commands](http://twitch.tv/commands) is activated you should get those USERSTATE messages in your debug window for every incoming message though. They look pretty useless to me without also activating the tags capability though.

Same goes to other commands added like CLEARCHAT. It simply sends you a raw command your way whenever someone cleared the chat, and so on.

---

<div class="post-metadata">

**Author:** ![Liands](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@Liands](https://discuss.dev.twitch.com/u/Liands)\
**Post date:** [June 17, 2015, 12:45pm UTC](https://discuss.dev.twitch.com/t/users-list-in-irc-clients-missing-for-me/2525/23 "2015-06-17T12:45:21Z")

</div>

But when the servers return to normal operation, to capture the JOIN / PART information as was already done previously, only use MEMBERSHIP? the JOIN / PART IRC commands will again work correctly is that?

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [June 17, 2015, 6:12pm UTC](https://discuss.dev.twitch.com/t/users-list-in-irc-clients-missing-for-me/2525/24 "2015-06-17T18:12:38Z")

</div>

“Regular” Join/part is not coming back.

Unless you request the relevant CAP.

That is my understanding.

---

<div class="post-metadata">

**Author:** ![Liands](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@Liands](https://discuss.dev.twitch.com/u/Liands)\
**Post date:** [June 17, 2015, 6:41pm UTC](https://discuss.dev.twitch.com/t/users-list-in-irc-clients-missing-for-me/2525/25 "2015-06-17T18:41:41Z")

</div>

OK, I got it. But when the servers come back to receive the CAP MEMBERSHIP normally?

---

<div class="post-metadata">

**Author:** ![SeeingBlue](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/seeingblue/32/1876_2.png) [@SeeingBlue](https://discuss.dev.twitch.com/u/SeeingBlue)\
**Post date:** [June 17, 2015, 7:28pm UTC](https://discuss.dev.twitch.com/t/users-list-in-irc-clients-missing-for-me/2525/26 "2015-06-17T19:28:26Z")

</div>

Where are these links documented? Will they be sticking around?

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [June 17, 2015, 9:56pm UTC](https://discuss.dev.twitch.com/t/users-list-in-irc-clients-missing-for-me/2525/27 "2015-06-17T21:56:23Z")

</div>

They are not documented.

I anticipate they will be around for some time as the main website uses them.

Of course I don’t work for Twitch, I’m just a third party dev, I roll with the punches

---

<div class="post-metadata">

**Author:** ![William\_Staricha](https://avatars.discourse-cdn.com/v4/letter/w/f1d935/32.png) [@William\_Staricha](https://discuss.dev.twitch.com/u/William_Staricha)\
**Post date:** [June 18, 2015, 4:41pm UTC](https://discuss.dev.twitch.com/t/users-list-in-irc-clients-missing-for-me/2525/29 "2015-06-18T16:41:42Z")

</div>

How do i request CAP?

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [June 18, 2015, 5:12pm UTC](https://discuss.dev.twitch.com/t/users-list-in-irc-clients-missing-for-me/2525/30 "2015-06-18T17:12:07Z")

</div>

> [@coldblood3d](#):
>
> /raw CAP REQ :twitch.tv/membership  
> /raw CAP REQ :twitch.tv/commands

Please read the thread! @William_Staricha

---

<div class="post-metadata">

**Author:** ![William\_Staricha](https://avatars.discourse-cdn.com/v4/letter/w/f1d935/32.png) [@William\_Staricha](https://discuss.dev.twitch.com/u/William_Staricha)\
**Post date:** [June 18, 2015, 8:49pm UTC](https://discuss.dev.twitch.com/t/users-list-in-irc-clients-missing-for-me/2525/31 "2015-06-18T20:49:48Z")

</div>

thanks

---

<div class="post-metadata">

**Author:** ![Zilla](https://avatars.discourse-cdn.com/v4/letter/z/90db22/32.png) [@Zilla](https://discuss.dev.twitch.com/u/Zilla)\
**Post date:** [June 19, 2015, 11:24pm UTC](https://discuss.dev.twitch.com/t/users-list-in-irc-clients-missing-for-me/2525/32 "2015-06-19T23:24:09Z")

</div>

I can confirm that it works in getting userslist now in Chatzilla by going to Preferences -\> [irc.twitch.tv](http://irc.twitch.tv) -\> Lists -\> Auto-perform and adding the /raw CAP REQ :twitch.tv/membership and /raw CAP REQ :twitch.tv/commands

Also got it working in Hexchat.

Edit: this is before joining any channels which works for me since I manually do /join #channelname anyways.

---

<div class="post-metadata">

**Author:** ![GenUltra758](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@GenUltra758](https://discuss.dev.twitch.com/u/GenUltra758)\
**Post date:** [June 21, 2015, 11:45am UTC](https://discuss.dev.twitch.com/t/users-list-in-irc-clients-missing-for-me/2525/33 "2015-06-21T11:45:43Z")

</div>

i edited the code to list the broadcaster:

```
    on *:NOTICE:The moderators of this room are*:#: {
    hload stream stream
    .hdel -w stream $chan $+ ;moderators;*
    var %modlist = $gettok($1-,2,58)
    var %modcount = $numtok($gettok($1-,2,58),44)
    var %i = 1
    while ( %i <= %modcount ) {
      var %modname = $mid($gettok(%modlist,%i,44),2)
      .hadd stream $chan $+ ;moderators; $+ %modname %modname

      inc %i
    }
    set %broadcaster $right($chan,-1)
    .hadd stream $chan $+ ;moderators; $+ %broadcaster %broadcaster
    hsave -o stream stream
  
}

```

## but now there is the following line in the list (couldnt format as code since $+ was removed then):

## $chan $+ ;moderators; $+ %modname %modname

anyways the broadcaster is now in the list

edit: code updated to fit the new output via NOTICE  
Edit: removed if nick ( not needed anymore )  
Working on a security thing to prevent setting mods on NOTICE send by a user via irc (hacking)

---

<div class="post-metadata">

**Author:** ![splinny](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/splinny/32/495_2.png) [@splinny](https://discuss.dev.twitch.com/u/splinny)\
**Post date:** [June 21, 2015, 11:55am UTC](https://discuss.dev.twitch.com/t/users-list-in-irc-clients-missing-for-me/2525/34 "2015-06-21T11:55:01Z")

</div>

“In the list” you mean “in hash table”? Its probably caused by your manual input with single “/” from editbox (you need double “//” to evaluate commands).  
And why do you hload it? If you request full list isnt it better to hfree old one and hmake again?

---

<div class="post-metadata">

**Author:** ![GenUltra758](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@GenUltra758](https://discuss.dev.twitch.com/u/GenUltra758)\
**Post date:** [June 21, 2015, 7:14pm UTC](https://discuss.dev.twitch.com/t/users-list-in-irc-clients-missing-for-me/2525/35 "2015-06-21T19:14:41Z")

</div>

well i never used tables befor… basically i load the old file and save the changes (i think) atleast it works as it is atm if u have a better version or corrected version pls feel free to post the code 😄

---

<div class="post-metadata">

**Author:** ![splinny](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/splinny/32/495_2.png) [@splinny](https://discuss.dev.twitch.com/u/splinny)\
**Post date:** [June 21, 2015, 7:20pm UTC](https://discuss.dev.twitch.com/t/users-list-in-irc-clients-missing-for-me/2525/36 "2015-06-21T19:20:39Z")

</div>

As i told, you dont need to save\load it, you get full list when type /mods, so its better to delete old table and create new empty. And that means that your $chan-entry was from later just keep being there due to your save\load. (When you add items to hash table - you RE-write old one if they match by value, but other old (moderators, who were un-moded from channel) will still exist in your hash, thats why you need to delete whole table.)

---

<div class="post-metadata">

**Author:** ![GenUltra758](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@GenUltra758](https://discuss.dev.twitch.com/u/GenUltra758)\
**Post date:** [June 21, 2015, 7:45pm UTC](https://discuss.dev.twitch.com/t/users-list-in-irc-clients-missing-for-me/2525/38 "2015-06-21T19:45:40Z")

</div>

ok thx for the help 🙂 i didnt know that unmodded people will still be in the list

---

<div class="post-metadata">

**Author:** ![GenUltra758](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@GenUltra758](https://discuss.dev.twitch.com/u/GenUltra758)\
**Post date:** [June 21, 2015, 7:48pm UTC](https://discuss.dev.twitch.com/t/users-list-in-irc-clients-missing-for-me/2525/39 "2015-06-21T19:48:58Z")

</div>

however i would really appreciate if u can post your version of my edited version of the code since i never used Hash tables and i dont know much about them

---

<div class="post-metadata">

**Author:** ![splinny](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/splinny/32/495_2.png) [@splinny](https://discuss.dev.twitch.com/u/splinny)\
**Post date:** [June 21, 2015, 8:08pm UTC](https://discuss.dev.twitch.com/t/users-list-in-irc-clients-missing-for-me/2525/40 "2015-06-21T20:08:39Z")

</div>

Checked your, didnt notice “hdel -w”, so its ok, just manually delete those $chan-entry form hash and “stream” file. Should be ok.

---

<div class="post-metadata">

**Author:** ![GenUltra758](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@GenUltra758](https://discuss.dev.twitch.com/u/GenUltra758)\
**Post date:** [June 21, 2015, 8:14pm UTC](https://discuss.dev.twitch.com/t/users-list-in-irc-clients-missing-for-me/2525/41 "2015-06-21T20:14:27Z")

</div>

yea just tested it it does remove unmoded users thanks anyways 🙂

also if i did misspell some stuff: sry my english writing isn’t the best i know. i can speak better english than i type lol

greetings from Germany.

---

<div class="post-metadata">

**Author:** ![OurFlagIsMined](https://avatars.discourse-cdn.com/v4/letter/o/4af34b/32.png) [@OurFlagIsMined](https://discuss.dev.twitch.com/u/OurFlagIsMined)\
**Post date:** [June 22, 2015, 1:56am UTC](https://discuss.dev.twitch.com/t/users-list-in-irc-clients-missing-for-me/2525/42 "2015-06-22T01:56:49Z")

</div>

You can also put this in your remote section if you want it to send the CAP REQ automatically on connect:

```auto
on ^*:LOGON:*:raw CAP REQ :twitch.tv/membership twitch.tv/commands
```

[Previous page](https://discuss.dev.twitch.com/t/users-list-in-irc-clients-missing-for-me/2525.md?page=1)

[Next page](https://discuss.dev.twitch.com/t/users-list-in-irc-clients-missing-for-me/2525.md?page=3)
