Ubuntu下Irssi客户端/whois命令频道内失效问题咨询
/whois Not Returning Results Hey there! As someone who's spent plenty of time tinkering with Irssi on Ubuntu, let's walk through why your /whois command might be silent in the client but work fine on the webchat. Here are the most likely fixes:
1. Missing NickServ Authentication
Freenode (and many IRC networks) restrict certain commands or hide user details for unauthenticated users. The webchat probably auto-logs you in via browser cookies, but Irssi doesn't do that by default.
- Fix: If you've already registered your nickname, run this in Irssi:
If you haven't registered yet, set up your account first:/msg NickServ IDENTIFY your_password
Verify your email, log back in, then try/msg NickServ REGISTER your_password your_email@example.com/whoisagain.
2. Incomplete or Misconfigured Server Connection
Sometimes Irssi might connect to a less reliable Freenode node, or your connection might not fully sync with the channel's user list.
- Fix:
- Check connected servers with
/server list freenodeto see official nodes. - Reconnect to a primary node using SSL (more stable and secure):
/disconnect /connect -ssl irc.freenode.net 6697 - Rejoin your channel with
/join #your_channeland confirm you see the join message before running/whois.
- Check connected servers with
3. Local Config or Plugin Interference
Custom Irssi configurations or third-party plugins can sometimes filter or suppress command output without you realizing it.
- Fix: Test with a clean Irssi instance to rule this out:
Manually connect to Freenode, join your channel, and runirssi --noconfig/whois. If it works here, you'll need to dig into your~/.irssi/configfile or disable recently added plugins to find the culprit.
4. Firewall or Network Restrictions
Ubuntu's firewall or your network might block IRC traffic that carries /whois responses. Webchat uses HTTPS which is often unblocked, but Irssi uses standard IRC ports.
- Fix:
- Check your firewall status with:
sudo ufw status - If IRC ports (6667 for plaintext, 6697 for SSL) aren't allowed, add them:
sudo ufw allow 6697/tcp - Reconnect using SSL as mentioned earlier, since encrypted connections are less likely to be filtered.
- Check your firewall status with:
内容的提问来源于stack exchange,提问作者Zach

