This repository has been archived by the owner on Jun 27, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
Playbot crashes when you shrug #281
Comments
This is because my IRC client is sending the U+00AF MACRON as a one-byte bit of invalid unicode (instead of 0xC2AF) |
Okay, this is really weird. It's a bug in the irc crate or the network stack, and only occurs when it has received a macron over the network. The following code does it. It has to be run with extern crate irc;
use std::default::Default;
use irc::client::prelude::*;
fn main() {
let cfg = Config {
nickname: Some(format!("irctest2")),
server: Some(format!("irc.mozilla.org")),
channels: Some(vec![format!("#testchan")]),
.. Default::default()
};
let server = IrcServer::from_config(cfg).unwrap();
server.identify().unwrap();
let name = "playbot";
for message in server.iter() {
let message = message.unwrap();
match message.command {
Command::PRIVMSG(ref to, ref msg) => {
println!("received");
}
_ => ()
}
}
println!("done");
} cc @aatxe |
I suspect rr can help here if you're on linux. |
Can you get a backtrace or something? It'd be interesting to see where this is actually a problem. |
No, there is no backtrace. But you can reproduce it with the above minimal IRC bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Just say
¯\_(ツ)_/¯
in a channel with playbot in it.Playbot will respect your apathy and leave/rejoin.
cc @alexcrichton
The text was updated successfully, but these errors were encountered: