#include "numeric.h"
#include "s_serv.h"
#include "send.h"
-#include "irc_string.h"
-#include "sprintf_irc.h"
+#include "match.h"
#include "msg.h"
#include "parse.h"
#include "modules.h"
int cur_len;
int rl;
- cur_len = ircsprintf(buf, form_str(RPL_USERHOST), me.name, parv[0], "");
+ cur_len = rb_sprintf(buf, form_str(RPL_USERHOST), me.name, source_p->name, "");
t = buf + cur_len;
for (i = 1; i <= 5; i++)
*/
if(MyClient(target_p) && (target_p == source_p))
{
- rl = ircsprintf(response, "%s%s=%c%s@%s ",
+ rl = rb_sprintf(response, "%s%s=%c%s@%s ",
target_p->name,
IsOper(target_p) ? "*" : "",
(target_p->user->away) ? '-' : '+',
}
else
{
- rl = ircsprintf(response, "%s%s=%c%s@%s ",
+ rl = rb_sprintf(response, "%s%s=%c%s@%s ",
target_p->name,
IsOper(target_p) ? "*" : "",
(target_p->user->away) ? '-' : '+',
if((rl + cur_len) < (BUFSIZE - 10))
{
- ircsprintf(t, "%s", response);
+ rb_sprintf(t, "%s", response);
t += rl;
cur_len += rl;
}