diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-15 13:50:22 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-15 13:50:22 +0000 |
commit | a9330043198154ffde6ca99796b0e3091c1c0ff4 (patch) | |
tree | 46c7e20af7f99c50c0be8db0f7fd0ffe9581d96d | |
parent | 0c7ed930d5b7975ab96764db200aaf383b7cde95 (diff) |
Changed InviteTo to use irc::string
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2471 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/commands.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index eb9d12f4e..da88413ab 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -377,7 +377,8 @@ void handle_invite(char **parameters, int pcnt, userrec *user) return; } - u->InviteTo(c->name); + irc::string xname(c->name); + u->InviteTo(xname); WriteFrom(u->fd,user,"INVITE %s :%s",u->nick,c->name); WriteServ(user->fd,"341 %s %s %s",user->nick,u->nick,c->name); FOREACH_MOD OnUserInvite(user,u,c); @@ -390,7 +391,7 @@ void handle_invite(char **parameters, int pcnt, userrec *user) for (InvitedList::iterator i = il->begin(); i != il->end(); i++) { if (i->channel) { - WriteServ(user->fd,"346 %s :%s",user->nick,i->channel); + WriteServ(user->fd,"346 %s :%s",user->nick,i->channel.c_str()); } } WriteServ(user->fd,"347 %s :End of INVITE list",user->nick); |