From 93476115018b21f7bf5283ebbc31db575ac3789c Mon Sep 17 00:00:00 2001 From: Till Hoeppner Date: Mon, 20 Apr 2015 23:20:20 +0200 Subject: Refix server --- src/server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server.rs') 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()); } } -- cgit v1.2.3