From: timriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
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=fadf3589030f800c8cd3da7dc88696258f5afc4b;p=infobot.git

$ident for more than one nick


git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1235 c11ca15a-4712-0410-83d8-924469b57eb5
---

diff --git a/blootbot/src/Factoids/Reply.pl b/blootbot/src/Factoids/Reply.pl
index d21f0f2..d2152c1 100644
--- a/blootbot/src/Factoids/Reply.pl
+++ b/blootbot/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);