virtual void SendChannelPrivmsg(Channel* target, char status, const std::string &text) { }
virtual void SendChannelNotice(Channel* target, char status, const std::string &text) { }
+
+ virtual void SendUserPrivmsg(User* target, const std::string &text) { }
+
+ virtual void SendUserNotice(User* target, const std::string &text) { }
};
#endif
SendChannel(target, status, ServerInstance->Config->GetSID()+" NOTICE "+target->name+" :"+text);
}
+void SpanningTreeProtocolInterface::SendUserPrivmsg(User* target, const std::string &text)
+{
+ TreeServer* serv = Utils->FindServer(target->server);
+ if (serv)
+ {
+ TreeSocket* sock = serv->GetSock();
+ if (sock)
+ {
+ Sock->WriteLine(ServerInstance->Config->GetSID() + " PRIVMSG " + target->nick + " :"+text);
+ }
+ }
+}
+
+void SpanningTreeProtocolInterface::SendUserNotice(User* target, const std::string &text)
+{
+ TreeServer* serv = Utils->FindServer(target->server);
+ if (serv)
+ {
+ TreeSocket* sock = serv->GetSock();
+ if (sock)
+ {
+ Sock->WriteLine(ServerInstance->Config->GetSID() + " NOTICE " + target->nick + " :"+text);
+ }
+ }
+}
+
virtual void PushToClient(User* target, const std::string &rawline);
virtual void SendChannelPrivmsg(Channel* target, char status, const std::string &text);
virtual void SendChannelNotice(Channel* target, char status, const std::string &text);
+ virtual void SendUserPrivmsg(User* target, const std::string &text);
+ virtual void SendUserNotice(User* target, const std::string &text);
};
#endif