|
@@ -93,22 +93,22 @@ static void bot_chan2(int idx, char *msg)
|
|
|
}
|
|
}
|
|
|
p = strchr(from, '@');
|
|
p = strchr(from, '@');
|
|
|
if (p) {
|
|
if (p) {
|
|
|
- sprintf(TBUF, STR("<%s> %s"), from, msg);
|
|
|
|
|
|
|
+ sprintf(TBUF, "<%s> %s", from, msg);
|
|
|
*p = 0;
|
|
*p = 0;
|
|
|
if (!partyidle(p + 1, from)) {
|
|
if (!partyidle(p + 1, from)) {
|
|
|
*p = '@';
|
|
*p = '@';
|
|
|
- fake_alert(idx, STR("user"), from);
|
|
|
|
|
|
|
+ fake_alert(idx, "user", from);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
*p = '@';
|
|
*p = '@';
|
|
|
p++;
|
|
p++;
|
|
|
} else {
|
|
} else {
|
|
|
- sprintf(TBUF, STR("*** (%s) %s"), from, msg);
|
|
|
|
|
|
|
+ sprintf(TBUF, "*** (%s) %s", from, msg);
|
|
|
p = from;
|
|
p = from;
|
|
|
}
|
|
}
|
|
|
i = nextbot(p);
|
|
i = nextbot(p);
|
|
|
if (i != idx) {
|
|
if (i != idx) {
|
|
|
- fake_alert(idx, STR("direction"), p);
|
|
|
|
|
|
|
+ fake_alert(idx, "direction", p);
|
|
|
} else {
|
|
} else {
|
|
|
chanout_but(-1, chan, "%s\n", TBUF);
|
|
chanout_but(-1, chan, "%s\n", TBUF);
|
|
|
/* Send to new version bots */
|
|
/* Send to new version bots */
|
|
@@ -185,16 +185,16 @@ static void bot_chat(int idx, char *par)
|
|
|
return;
|
|
return;
|
|
|
from = newsplit(&par);
|
|
from = newsplit(&par);
|
|
|
if (strchr(from, '@') != NULL) {
|
|
if (strchr(from, '@') != NULL) {
|
|
|
- fake_alert(idx, STR("bot"), from);
|
|
|
|
|
|
|
+ fake_alert(idx, "bot", from);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
/* Make sure the bot is valid */
|
|
/* Make sure the bot is valid */
|
|
|
i = nextbot(from);
|
|
i = nextbot(from);
|
|
|
if (i != idx) {
|
|
if (i != idx) {
|
|
|
- fake_alert(idx, STR("direction"), from);
|
|
|
|
|
|
|
+ fake_alert(idx, "direction", from);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- chatout(STR("*** (%s) %s\n"), from, par);
|
|
|
|
|
|
|
+ chatout("*** (%s) %s\n", from, par);
|
|
|
botnet_send_chat(idx, from, par);
|
|
botnet_send_chat(idx, from, par);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -211,20 +211,20 @@ static void bot_actchan(int idx, char *par)
|
|
|
p = strchr(from, '@');
|
|
p = strchr(from, '@');
|
|
|
if (p == NULL) {
|
|
if (p == NULL) {
|
|
|
/* How can a bot do an action? */
|
|
/* How can a bot do an action? */
|
|
|
- fake_alert(idx, STR("user@bot"), from);
|
|
|
|
|
|
|
+ fake_alert(idx, "user@bot", from);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
*p = 0;
|
|
*p = 0;
|
|
|
if (!partyidle(p + 1, from)) {
|
|
if (!partyidle(p + 1, from)) {
|
|
|
*p = '@';
|
|
*p = '@';
|
|
|
- fake_alert(idx, STR("user"), from);
|
|
|
|
|
|
|
+ fake_alert(idx, "user", from);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
*p = '@';
|
|
*p = '@';
|
|
|
p++;
|
|
p++;
|
|
|
i = nextbot(p);
|
|
i = nextbot(p);
|
|
|
if (i != idx) {
|
|
if (i != idx) {
|
|
|
- fake_alert(idx, STR("direction"), p);
|
|
|
|
|
|
|
+ fake_alert(idx, "direction", p);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
p = newsplit(&par);
|
|
p = newsplit(&par);
|
|
@@ -235,7 +235,7 @@ static void bot_actchan(int idx, char *par)
|
|
|
else
|
|
else
|
|
|
p++;
|
|
p++;
|
|
|
}
|
|
}
|
|
|
- chanout_but(-1, chan, STR("* %s %s\n"), from, par);
|
|
|
|
|
|
|
+ chanout_but(-1, chan, "* %s %s\n", from, par);
|
|
|
botnet_send_act(idx, from, NULL, chan, par);
|
|
botnet_send_act(idx, from, NULL, chan, par);
|
|
|
check_tcl_act(from, chan, par);
|
|
check_tcl_act(from, chan, par);
|
|
|
}
|
|
}
|
|
@@ -257,7 +257,7 @@ static void bot_priv(int idx, char *par)
|
|
|
p = from;
|
|
p = from;
|
|
|
i = nextbot(p);
|
|
i = nextbot(p);
|
|
|
if (i != idx) {
|
|
if (i != idx) {
|
|
|
- fake_alert(idx, STR("direction"), p);
|
|
|
|
|
|
|
+ fake_alert(idx, "direction", p);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
if (!to[0])
|
|
if (!to[0])
|
|
@@ -271,27 +271,27 @@ static void bot_priv(int idx, char *par)
|
|
|
if (from[0] != '@')
|
|
if (from[0] != '@')
|
|
|
switch (i) {
|
|
switch (i) {
|
|
|
case NOTE_ERROR:
|
|
case NOTE_ERROR:
|
|
|
- botnet_send_priv(idx, botnetnick, from, NULL, STR("%s %s."), BOT_NOSUCHUSER, to);
|
|
|
|
|
|
|
+ botnet_send_priv(idx, botnetnick, from, NULL, "%s %s.", BOT_NOSUCHUSER, to);
|
|
|
break;
|
|
break;
|
|
|
case NOTE_STORED:
|
|
case NOTE_STORED:
|
|
|
- botnet_send_priv(idx, botnetnick, from, NULL, STR("%s"), BOT_NOTESTORED2);
|
|
|
|
|
|
|
+ botnet_send_priv(idx, botnetnick, from, NULL, "%s", BOT_NOTESTORED2);
|
|
|
break;
|
|
break;
|
|
|
case NOTE_FULL:
|
|
case NOTE_FULL:
|
|
|
- botnet_send_priv(idx, botnetnick, from, NULL, STR("%s"), BOT_NOTEBOXFULL);
|
|
|
|
|
|
|
+ botnet_send_priv(idx, botnetnick, from, NULL, "%s", BOT_NOTEBOXFULL);
|
|
|
break;
|
|
break;
|
|
|
case NOTE_AWAY:
|
|
case NOTE_AWAY:
|
|
|
- botnet_send_priv(idx, botnetnick, from, NULL, STR("%s %s"), to, BOT_NOTEISAWAY);
|
|
|
|
|
|
|
+ botnet_send_priv(idx, botnetnick, from, NULL, "%s %s", to, BOT_NOTEISAWAY);
|
|
|
break;
|
|
break;
|
|
|
case NOTE_FWD:
|
|
case NOTE_FWD:
|
|
|
- botnet_send_priv(idx, botnetnick, from, NULL, STR("%s %s"), STR("Not online; note forwarded to:"), to);
|
|
|
|
|
|
|
+ botnet_send_priv(idx, botnetnick, from, NULL, "%s %s", "Not online; note forwarded to:", to);
|
|
|
break;
|
|
break;
|
|
|
case NOTE_REJECT:
|
|
case NOTE_REJECT:
|
|
|
- botnet_send_priv(idx, botnetnick, from, NULL, STR("%s %s"), to, STR("rejected your note."));
|
|
|
|
|
|
|
+ botnet_send_priv(idx, botnetnick, from, NULL, "%s %s", to, "rejected your note.");
|
|
|
break;
|
|
break;
|
|
|
case NOTE_TCL:
|
|
case NOTE_TCL:
|
|
|
break; /* Do nothing */
|
|
break; /* Do nothing */
|
|
|
case NOTE_OK:
|
|
case NOTE_OK:
|
|
|
- botnet_send_priv(idx, botnetnick, from, NULL, STR("%s %s."), BOT_NOTESENTTO, to);
|
|
|
|
|
|
|
+ botnet_send_priv(idx, botnetnick, from, NULL, "%s %s.", BOT_NOTESENTTO, to);
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|