diff options
author | Till Hoeppner | 2015-04-19 20:23:55 +0200 |
---|---|---|
committer | Till Hoeppner | 2015-04-19 20:48:01 +0200 |
commit | da1033bd5f2600afa674e4f536aef48b1a802634 (patch) | |
tree | ac920735e2a4f9be13ea3200523e5c010b7c7176 /src/server.rs | |
parent | 358eb0769750059561ae58797f049918c703fe79 (diff) | |
download | irsc-da1033bd5f2600afa674e4f536aef48b1a802634.tar.gz irsc-da1033bd5f2600afa674e4f536aef48b1a802634.tar.xz irsc-da1033bd5f2600afa674e4f536aef48b1a802634.zip |
Apparently not. Let's try again.
Diffstat (limited to 'src/server.rs')
-rw-r--r-- | src/server.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/server.rs b/src/server.rs index 62ee071..a8c2819 100644 --- a/src/server.rs +++ b/src/server.rs @@ -114,27 +114,27 @@ impl Server { } pub fn join(&mut self, channel: &str) -> Result<()> { - self.sendraw(format!("JOIN {}", channel).as_ref()) + self.sendraw(format!("JOIN {}\r\n", channel).as_ref()) } pub fn part(&mut self, channel: &str) -> Result<()> { - self.sendraw(format!("PART {}", channel).as_ref()) + self.sendraw(format!("PART {}\r\n", channel).as_ref()) } pub fn nick(&mut self, nick: &str) -> Result<()> { - self.sendraw(format!("NICK {}", nick).as_ref()) + self.sendraw(format!("NICK {}\r\n", nick).as_ref()) } pub fn user(&mut self, username: &str, hostname: &str, servername: &str, realname: &str) -> Result<()> { - self.sendraw(format!("USER {} {} {} :{}", username, hostname, servername, realname).as_ref()) + self.sendraw(format!("USER {} {} {} :{}\r\n", username, hostname, servername, realname).as_ref()) } pub fn password(&mut self, password: &str) -> Result<()> { - self.sendraw(format!("PASS {}", password).as_ref()) + self.sendraw(format!("PASS {}\r\n", password).as_ref()) } pub fn msg(&mut self, target: &str, message: &str) -> Result<()> { - self.sendraw(format!("PRIVMSG {} :{}", target, message).as_ref()) + self.sendraw(format!("PRIVMSG {} :{}\r\n", target, message).as_ref()) } pub fn listen(&mut self, events: &[fn(&mut Server, &Message)]) -> Result<()> { |