From b77d6bde1cfdb1a1f6868dfa1d0e6d70bcb8c60c Mon Sep 17 00:00:00 2001 From: timriker Date: Wed, 27 Jul 2005 18:33:15 +0000 Subject: [PATCH] $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 --- src/Factoids/Reply.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.39.2