Permalink
Browse files

Campfire/Message: learn to stringify LeaveMessages

This should have been added along with EnterMessage, but I
somehow missed it.
  • Loading branch information...
peff committed Mar 5, 2013
1 parent edd7f26 commit 52c89a75b6b839ee8a80f6358b831caa67051f67
Showing with 3 additions and 0 deletions.
  1. +3 −0 Campfire/Message.pm
View
@@ -32,6 +32,9 @@ sub as_string {
elsif ($type eq 'EnterMessage') {
return $self->name . ' enters';
}
elsif ($type eq 'LeaveMessage') {
return $self->name . ' leaves';
}
elsif ($type eq 'TextMessage') {
return '<' . $self->name . '> ' . $self->body;
}

0 comments on commit 52c89a7

Please sign in to comment.