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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user