summaryrefslogtreecommitdiff
path: root/src/protocol/unreal32.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-04 05:45:58 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-04 05:45:58 +0000
commit2708eea5d13c249143b83fbaa8b552992f0ac8b6 (patch)
tree5afffad5f83ca6daa89784c27f4d4e9c5f4eb8fc /src/protocol/unreal32.c
parentf58026749b0c0770a322893b27c013168be5cdbc (diff)
Removed NICKMAX and CHANMAX, replaced user->nick, c->name, and ci->name with std::string
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2732 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/unreal32.c')
-rw-r--r--src/protocol/unreal32.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c
index 7e8d0985b..81229930c 100644
--- a/src/protocol/unreal32.c
+++ b/src/protocol/unreal32.c
@@ -181,7 +181,7 @@ class UnrealIRCdProto : public IRCDProto
void SendTopic(BotInfo *whosets, Channel *c, const char *whosetit, const char *topic)
{
- send_cmd(whosets->nick, ") %s %s %lu :%s", c->name, whosetit, static_cast<unsigned long>(c->topic_time), topic);
+ send_cmd(whosets->nick, ") %s %s %lu :%s", c->name.c_str(), whosetit, static_cast<unsigned long>(c->topic_time), topic);
}
void SendVhostDel(User *u)
@@ -204,7 +204,7 @@ class UnrealIRCdProto : public IRCDProto
void SendSVSKillInternal(BotInfo *source, User *user, const char *buf)
{
- send_cmd(source ? source->nick : Config.ServerName, "h %s :%s", user->nick, buf);
+ send_cmd(source ? source->nick : Config.ServerName, "h %s :%s", user->nick.c_str(), buf);
}
/*
@@ -225,13 +225,13 @@ class UnrealIRCdProto : public IRCDProto
void SendModeInternal(BotInfo *source, Channel *dest, const char *buf)
{
if (!buf) return;
- send_cmd(source->nick, "G %s %s", dest->name, buf);
+ send_cmd(source->nick, "G %s %s", dest->name.c_str(), buf);
}
void SendModeInternal(BotInfo *bi, User *u, const char *buf)
{
if (!buf) return;
- send_cmd(bi ? bi->nick : Config.ServerName, "v %s %s", u->nick, buf);
+ send_cmd(bi ? bi->nick : Config.ServerName, "v %s %s", u->nick.c_str(), buf);
}
void SendClientIntroduction(const char *nick, const char *user, const char *host, const char *real, const char *modes, const char *uid)
@@ -244,14 +244,14 @@ class UnrealIRCdProto : public IRCDProto
void SendKickInternal(BotInfo *source, Channel *chan, User *user, const char *buf)
{
- if (buf) send_cmd(source->nick, "H %s %s :%s", chan->name, user->nick, buf);
- else send_cmd(source->nick, "H %s %s", chan->name, user->nick);
+ if (buf) send_cmd(source->nick, "H %s %s :%s", chan->name.c_str(), user->nick.c_str(), buf);
+ else send_cmd(source->nick, "H %s %s", chan->name.c_str(), user->nick.c_str());
}
void SendNoticeChanopsInternal(BotInfo *source, Channel *dest, const char *buf)
{
if (!buf) return;
- send_cmd(source->nick, "B @%s :%s", dest->name, buf);
+ send_cmd(source->nick, "B @%s :%s", dest->name.c_str(), buf);
}
/* SERVER name hop descript */
@@ -320,8 +320,8 @@ class UnrealIRCdProto : public IRCDProto
void SendVhost(User *u, const char *vIdent, const char *vhost)
{
- if (vIdent) unreal_cmd_chgident(u->nick, vIdent);
- unreal_cmd_chghost(u->nick, vhost);
+ if (vIdent) unreal_cmd_chgident(u->nick.c_str(), vIdent);
+ unreal_cmd_chghost(u->nick.c_str(), vhost);
}
void SendConnect()
@@ -392,8 +392,8 @@ class UnrealIRCdProto : public IRCDProto
void SendSVSModeChan(Channel *c, const char *mode, const char *nick)
{
- if (nick) send_cmd(Config.ServerName, "n %s %s %s", c->name, mode, nick);
- else send_cmd(Config.ServerName, "n %s %s", c->name, mode);
+ if (nick) send_cmd(Config.ServerName, "n %s %s %s", c->name.c_str(), mode, nick);
+ else send_cmd(Config.ServerName, "n %s %s", c->name.c_str(), mode);
}
/* svsjoin