mirror of
https://github.com/anope/anope.git
synced 2026-07-03 13:03:14 +02:00
fixed sending CHGIDENT without parameter
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2825 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+1
-1
@@ -1056,7 +1056,7 @@ class CoreExport IRCDProto
|
||||
virtual void SendSVSO(const char *, const char *, const char *) { }
|
||||
virtual void SendChangeBotNick(BotInfo *bi, const char *newnick);
|
||||
virtual void SendForceNickChange(User *u, const char *newnick, time_t when);
|
||||
virtual void SendVhost(User *, const char *, const char *) { }
|
||||
virtual void SendVhost(User *, const std::string &, const std::string &) { }
|
||||
virtual void SendConnect() = 0;
|
||||
virtual void SendSVSHold(const char *) { }
|
||||
virtual void SendSVSHoldDel(const char *) { }
|
||||
|
||||
+1
-1
@@ -198,7 +198,7 @@ void do_on_id(User *u)
|
||||
if (!na || !na->hostinfo.HasVhost())
|
||||
return;
|
||||
|
||||
ircdproto->SendVhost(u, na->hostinfo.GetIdent().c_str(), na->hostinfo.GetHost().c_str());
|
||||
ircdproto->SendVhost(u, na->hostinfo.GetIdent(), na->hostinfo.GetHost());
|
||||
if (ircd->vhost)
|
||||
{
|
||||
if (u->vhost)
|
||||
|
||||
@@ -240,10 +240,12 @@ class InspIRCdProto : public IRCDProto
|
||||
|
||||
/* Functions that use serval cmd functions */
|
||||
|
||||
void SendVhost(User *u, const char *vIdent, const char *vhost)
|
||||
void SendVhost(User *u, const std::string &vIdent, const std::string &vhost)
|
||||
{
|
||||
if (vIdent) inspircd_cmd_chgident(u->nick.c_str(), vIdent);
|
||||
inspircd_cmd_chghost(u->nick.c_str(), vhost);
|
||||
if (!vIdent.empty())
|
||||
inspircd_cmd_chgident(u->nick.c_str(), vIdent.c_str());
|
||||
if (!vhost.empty())
|
||||
inspircd_cmd_chghost(u->nick.c_str(), vhost.c_str());
|
||||
}
|
||||
|
||||
void SendConnect()
|
||||
|
||||
@@ -244,11 +244,12 @@ class InspIRCdProto : public IRCDProto
|
||||
|
||||
/* Functions that use serval cmd functions */
|
||||
|
||||
void SendVhost(User *u, const char *vIdent, const char *vhost)
|
||||
void SendVhost(User *u, const std::string &vIdent, const std::string &vhost)
|
||||
{
|
||||
if (vIdent)
|
||||
inspircd_cmd_chgident(u->nick.c_str(), vIdent);
|
||||
inspircd_cmd_chghost(u->nick.c_str(), vhost);
|
||||
if (!vIdent.empty())
|
||||
inspircd_cmd_chgident(u->nick.c_str(), vIdent.c_str());
|
||||
if (!vhost.empty())
|
||||
inspircd_cmd_chghost(u->nick.c_str(), vhost.c_str());
|
||||
}
|
||||
|
||||
void SendConnect()
|
||||
|
||||
@@ -279,10 +279,12 @@ class UnrealIRCdProto : public IRCDProto
|
||||
|
||||
/* Functions that use serval cmd functions */
|
||||
|
||||
void SendVhost(User *u, const char *vIdent, const char *vhost)
|
||||
void SendVhost(User *u, const std::string &vIdent, const std::string &vhost)
|
||||
{
|
||||
if (vIdent) unreal_cmd_chgident(u->nick.c_str(), vIdent);
|
||||
unreal_cmd_chghost(u->nick.c_str(), vhost);
|
||||
if (!vIdent.empty())
|
||||
unreal_cmd_chgident(u->nick.c_str(), vIdent.c_str());
|
||||
if (!vhost.empty())
|
||||
unreal_cmd_chghost(u->nick.c_str(), vhost.c_str());
|
||||
}
|
||||
|
||||
void SendConnect()
|
||||
|
||||
Reference in New Issue
Block a user