summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/message.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/message.rs b/src/message.rs
index 094720e..5c1c76c 100644
--- a/src/message.rs
+++ b/src/message.rs
@@ -45,6 +45,10 @@ impl Message {
&self.params
}
+ pub fn is_reply (&self) -> bool {
+ self.message_type.is_reply()
+ }
+
pub fn write_protocol_string<W: Writer> (&self, w: &mut W) -> io::IoResult<()> {
match self.from {
Some(ref f) => { try!(write!(w, ":{} ", f)) },