+ else
+ {
+ User* user = Instance->FindNick(target);
+
+ if (user)
+ {
+ if (messagetype == "PRIVMSG")
+ {
+ FOREACH_MOD_I(Instance, I_OnUserMessage, OnUserMessage(NULL, user, TYPE_USER, text, 0, except_list));
+ }
+ else
+ {
+ FOREACH_MOD_I(Instance, I_OnUserNotice, OnUserNotice(NULL, user, TYPE_USER, text, 0, except_list));
+ }
+ TreeServer* s = Utils->FindServer(prefix);
+ if (s)
+ {
+ FOREACH_MOD_I(Instance, I_OnText, OnText(NULL, user, TYPE_USER, text, status, except_list));
+ user->Write(":%s %s %s :%s", s->GetName().c_str(), messagetype.c_str(), user->nick, text.c_str());
+ }
+
+ }
+ }