[Jifty-commit] r2077 - in jifty/trunk: examples/Chat/lib/Chat/Action
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Fri Oct 27 13:45:15 EDT 2006
Author: jesse
Date: Fri Oct 27 13:45:14 2006
New Revision: 2077
Modified:
jifty/trunk/ (props changed)
jifty/trunk/examples/Chat/lib/Chat/Action/Send.pm
Log:
r29541 at pinglin: jesse | 2006-10-27 10:44:59 -0700
* Added the hostname to username for chatting.
Modified: jifty/trunk/examples/Chat/lib/Chat/Action/Send.pm
==============================================================================
--- jifty/trunk/examples/Chat/lib/Chat/Action/Send.pm (original)
+++ jifty/trunk/examples/Chat/lib/Chat/Action/Send.pm Fri Oct 27 13:45:14 2006
@@ -10,7 +10,7 @@
sub take_action {
my $self = shift;
my $msg = $self->argument_value('message');
- $msg = "<$1> $msg" if $ENV{HTTP_USER_AGENT} =~ /([^\W\d]+)[\W\d]*$/;
+ $msg = "<$1\@${ENV{'REMOTE_ADDR'}}> $msg" if $ENV{HTTP_USER_AGENT} =~ /([^\W\d]+)[\W\d]*$/;
Chat::Event::Message->new( { message => $msg } )->publish;
}
More information about the Jifty-commit
mailing list