From: timriker Date: Wed, 27 Jul 2005 18:33:15 +0000 (+0000) Subject: $ident for more than one nick X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b77d6bde1cfdb1a1f6868dfa1d0e6d70bcb8c60c;p=infobot.git $ident for more than one nick git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1235 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/Factoids/Reply.pl b/src/Factoids/Reply.pl index d21f0f2..d2152c1 100644 --- a/src/Factoids/Reply.pl +++ b/src/Factoids/Reply.pl @@ -276,6 +276,9 @@ sub substVars { $date =~ s/\w+\s+\w+\s+\d+\s+//; $reply =~ s/\$time/$date/gi; + # support $ident when I have multiple nicks + my $mynick = $conn->nick(); + # dollar variables. if ($flag) { $reply =~ s/\$nick/$who/g; @@ -319,7 +322,7 @@ sub substVars { } } - $reply =~ s/\$ident/$ident/g; + $reply =~ s/\$ident/$mynick/g; if ($reply =~ /\$startTime/) { my $time = scalar(gmtime $^T);