aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Fripost
diff options
context:
space:
mode:
authorStefan Kangas <skangas@skangas.se>2011-03-21 22:31:02 +0100
committerStefan Kangas <skangas@skangas.se>2011-03-21 22:31:02 +0100
commitc7701570975feab6dd268802c6f552381d691529 (patch)
tree7aa9312668e2e6c98586ab1d07d09b1543b4439d /lib/Fripost
parent7a522692d79d68d276fad9edf233530f68dadb7e (diff)
Updates
Diffstat (limited to 'lib/Fripost')
-rwxr-xr-xlib/Fripost/Prompt.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Fripost/Prompt.pm b/lib/Fripost/Prompt.pm
index b41f806..bbc554d 100755
--- a/lib/Fripost/Prompt.pm
+++ b/lib/Fripost/Prompt.pm
@@ -32,9 +32,9 @@ sub confirm_or_abort {
sub fix_username {
my ($nam) = @_;
- if ($nam !~ /\@/) {
+ if (defined $nam && $nam !~ /\@/) {
$nam .= '@fripost.org';
- say "Using username: $nam";
+ say "Using $nam";
}
return $nam;
}