diff --git a/include/class.ticket.php b/include/class.ticket.php
index 1f1517ee63756f6ae23825a085e06487b1e629ce..d76e8993037d5a6c27ce8352252a78d18d92cfde 100644
--- a/include/class.ticket.php
+++ b/include/class.ticket.php
@@ -1719,8 +1719,7 @@ class Ticket {
                 $recipients[]=$this->getLastRespondent();
 
             //Assigned staff if any...could be the last respondent
-
-            if ($this->isAssigned()) {
+            if ($cfg->alertAssignedONNewMessage() && $this->isAssigned()) {
                 if ($staff = $this->getStaff())
                     $recipients[] = $staff;
                 elseif ($team = $this->getTeam())