summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-09-09 19:14:25 -0400
committerJesse Luehrs <doy@tozt.net>2014-09-09 19:14:25 -0400
commit01a7dcbd4ba33b63d8c03ec15dddbef0c422c1f5 (patch)
treef1672da2c07e92e57c55c5ec2ff1997347730c4b /src
parent1adaa2390928e87108208ec75e3748dd5a77fff3 (diff)
downloadrust-irc-01a7dcbd4ba33b63d8c03ec15dddbef0c422c1f5.tar.gz
rust-irc-01a7dcbd4ba33b63d8c03ec15dddbef0c422c1f5.zip
pass is_reply through to the message type
Diffstat (limited to 'src')
-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)) },