diff options
author | Till Hoeppner | 2015-04-20 23:20:20 +0200 |
---|---|---|
committer | Till Hoeppner | 2015-04-20 23:20:20 +0200 |
commit | 93476115018b21f7bf5283ebbc31db575ac3789c (patch) | |
tree | 6c9fe576dd7232fcf2f11e508fb11591eba1b6af /src/server.rs | |
parent | 5f1ffd753af42357c8b074c7a8bc9be2eade002e (diff) | |
download | irsc-93476115018b21f7bf5283ebbc31db575ac3789c.tar.gz irsc-93476115018b21f7bf5283ebbc31db575ac3789c.tar.xz irsc-93476115018b21f7bf5283ebbc31db575ac3789c.zip |
Refix server
Diffstat (limited to 'src/server.rs')
-rw-r--r-- | src/server.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server.rs b/src/server.rs index e5548ef..035ee19 100644 --- a/src/server.rs +++ b/src/server.rs @@ -62,8 +62,8 @@ impl Server { } fn handle_event(&mut self, msg: &Message) { - if *msg.command == "PING" { - let _ = self.send(Command::PONG(msg.suffix, None).to_message()); + if msg.command() == "PING" { + let _ = self.send(Command::PONG(msg.suffix().unwrap_or(""), None).to_message()); } } |