1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 18:43:12 +02:00

core/bs_* modules now compile.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1380 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Robin Burchell w00t@inspircd.org
2008-10-02 23:28:52 +00:00
parent 9c59d8d8b4
commit 0a0c963ea6
4 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -82,10 +82,10 @@ int do_act(User * u)
notice_lang(s_BotServ, u, ACCESS_DENIED);
else {
strnrepl(text, BUFSIZE, "\001", "");
ircdproto->SendAction(ci->bi->nick, ci->name, "%s", text);
ircdproto->SendAction(ci->bi, ci->name, "%s", text);
ci->bi->lastmsg = time(NULL);
if (LogBot && LogChannel && logchan && !debug && findchan(LogChannel))
ircdproto->SendPrivmsg(ci->bi->nick, LogChannel, "ACT %s %s %s",
ircdproto->SendPrivmsg(ci->bi, LogChannel, "ACT %s %s %s",
u->nick, ci->name, text);
}
return MOD_CONT;
+3 -3
View File
@@ -294,10 +294,10 @@ int do_bot(User * u)
else we must make it quit and rejoin. We must not forget to set
the Q:Line either (it's otherwise set in SendClientIntroduction) */
if (!user) {
ircdproto->SendChangeBotNick(oldnick, bi->nick);
ircdproto->SendChangeBotNick(bi, bi->nick);
ircdproto->SendSQLine(bi->nick, "Reserved for services");
} else {
ircdproto->SendQuit(oldnick, "Quit: Be right back");
ircdproto->SendQuit(bi, "Quit: Be right back");
ircdproto->SendClientIntroduction(bi->nick, bi->user, bi->host, bi->real,
ircd->botserv_bot_mode);
@@ -320,7 +320,7 @@ int do_bot(User * u)
notice_lang(s_BotServ, u, BOT_DOES_NOT_EXIST, nick);
else {
send_event(EVENT_BOT_DEL, 1, bi->nick);
ircdproto->SendQuit(bi->nick,
ircdproto->SendQuit(bi,
"Quit: Help! I'm being deleted by %s!",
u->nick);
if (ircd->sqline) {
+6 -6
View File
@@ -77,12 +77,12 @@ int do_fantasy(int argc, char **argv)
/* If we look for the bot */
snprintf(buf, sizeof(buf), getstring(u->na, BOT_SEEN_BOT),
u->nick);
ircdproto->SendPrivmsg(ci->bi->nick, ci->name, "%s", buf);
ircdproto->SendPrivmsg(ci->bi, ci->name, "%s", buf);
} else if (!(na = findnick(target)) || (na->status & NS_VERBOTEN)) {
/* If the nick is not registered or forbidden */
snprintf(buf, sizeof(buf), getstring(u->na, BOT_SEEN_UNKNOWN),
target);
ircdproto->SendPrivmsg(ci->bi->nick, ci->name, "%s", buf);
ircdproto->SendPrivmsg(ci->bi, ci->name, "%s", buf);
} else if ((u2 = nc_on_chan(ci->c, na->nc))) {
/* If the nick we're looking for is on the channel,
* there are three possibilities: it's yourself,
@@ -100,7 +100,7 @@ int do_fantasy(int argc, char **argv)
getstring(u->na, BOT_SEEN_ON_CHANNEL_AS), target,
u2->nick);
ircdproto->SendPrivmsg(ci->bi->nick, ci->name, "%s", buf);
ircdproto->SendPrivmsg(ci->bi, ci->name, "%s", buf);
} else if ((access = get_access_entry(na->nc, ci))) {
/* User is on the access list but not present actually.
Special case: if access->last_seen is 0 it's that we
@@ -116,7 +116,7 @@ int do_fantasy(int argc, char **argv)
snprintf(buf, sizeof(buf),
getstring(u->na, BOT_SEEN_NEVER), target);
}
ircdproto->SendPrivmsg(ci->bi->nick, ci->name, "%s", buf);
ircdproto->SendPrivmsg(ci->bi, ci->name, "%s", buf);
} else if (na->nc == ci->founder) {
/* User is the founder of the channel */
char durastr[192];
@@ -124,12 +124,12 @@ int do_fantasy(int argc, char **argv)
time(NULL) - na->last_seen);
snprintf(buf, sizeof(buf), getstring(u->na, BOT_SEEN_ON),
target, durastr);
ircdproto->SendPrivmsg(ci->bi->nick, ci->name, "%s", buf);
ircdproto->SendPrivmsg(ci->bi, ci->name, "%s", buf);
} else {
/* All other cases */
snprintf(buf, sizeof(buf), getstring(u->na, BOT_SEEN_UNKNOWN),
target);
ircdproto->SendPrivmsg(ci->bi->nick, ci->name, "%s", buf);
ircdproto->SendPrivmsg(ci->bi, ci->name, "%s", buf);
}
/* free myStrGetToken(ed) variable target (#851) */
Anope_Free(target);
+2 -2
View File
@@ -84,10 +84,10 @@ int do_say(User * u)
notice_lang(s_BotServ, u, ACCESS_DENIED);
else {
if (text[0] != '\001') {
ircdproto->SendPrivmsg(ci->bi->nick, ci->name, "%s", text);
ircdproto->SendPrivmsg(ci->bi, ci->name, "%s", text);
ci->bi->lastmsg = time(NULL);
if (LogBot && LogChannel && logchan && !debug && findchan(LogChannel))
ircdproto->SendPrivmsg(ci->bi->nick, LogChannel,
ircdproto->SendPrivmsg(ci->bi, LogChannel,
"SAY %s %s %s", u->nick, ci->name, text);
} else {
syntax_error(s_BotServ, u, "SAY", BOT_SAY_SYNTAX);