1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 15:53:13 +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:
DukePyrolator
2010-03-20 22:27:11 +00:00
parent 28ccf79adf
commit 3e77eaa218
5 changed files with 17 additions and 12 deletions
+5 -4
View File
@@ -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()