summaryrefslogtreecommitdiff
path: root/src/protocol/unreal32.c
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864>2010-03-20 22:27:11 +0000
committerDukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864>2010-03-20 22:27:11 +0000
commit3e77eaa21813f5b668f819722e68e2d7c6c800eb (patch)
treedbd0a44111e0149022fced9741a54a45aa9dbd72 /src/protocol/unreal32.c
parent28ccf79adf3ea27d6f37abb2abadf65224794889 (diff)
fixed sending CHGIDENT without parameter
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2825 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/unreal32.c')
-rw-r--r--src/protocol/unreal32.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c
index 1e22c109f..1ecd12860 100644
--- a/src/protocol/unreal32.c
+++ b/src/protocol/unreal32.c
@@ -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()