]> git.donarmstrong.com Git - infobot.git/commitdiff
$ident for more than one nick
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 27 Jul 2005 18:33:15 +0000 (18:33 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 27 Jul 2005 18:33:15 +0000 (18:33 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1235 c11ca15a-4712-0410-83d8-924469b57eb5

src/Factoids/Reply.pl

index d21f0f2e6e2ec97687a11162d714cb91bd9593ed..d2152c1165c4034ab246f6d4c0320b88959529a3 100644 (file)
@@ -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);