From e63ab1d5bf6136cbd97eb1a9deae3fbbd0ce7c62 Mon Sep 17 00:00:00 2001
From: ElTata <eltata@firemail.cc>
Date: Wed, 26 Aug 2020 13:39:26 +0200
Subject: [PATCH] new: notice sent to user when character passes lvl

---
 Irpg/Main.pm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Irpg/Main.pm b/Irpg/Main.pm
index 99d77c5..e4bdb1b 100644
--- a/Irpg/Main.pm
+++ b/Irpg/Main.pm
@@ -343,6 +343,10 @@ sub rpcheck { # check levels, update database
                         "$rps->{$k}{title} $rps->{$k}{class}->{NAME}, ".
                         "has attained level $rps->{$k}{level}! ".
                         "Next level in ".duration($rps->{$k}{next}).".");
+                Irpg::Irc::notice("You have attained level $rps->{$k}{level}! ".
+                        "Next level in ".duration($rps->{$k}{next}).".",
+						$rps->{$k}{nick});
+                }
                 find_item($k);
                 challenge_opp($k);
             }
-- 
GitLab