summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 23:28:52 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 23:28:52 +0000
commit0a0c963ea6ae2437302162201da3518477ac75bb (patch)
tree9da40d34e7548b475ce689474009099b8f9f86d4 /src
parent9c59d8d8b491a08bbcf4564b9437da07c40c2dfa (diff)
core/bs_* modules now compile.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1380 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/core/bs_act.c4
-rw-r--r--src/core/bs_bot.c6
-rw-r--r--src/core/bs_fantasy_seen.c12
-rw-r--r--src/core/bs_say.c4
4 files changed, 13 insertions, 13 deletions
diff --git a/src/core/bs_act.c b/src/core/bs_act.c
index 4e0d3431a..c41704bf3 100644
--- a/src/core/bs_act.c
+++ b/src/core/bs_act.c
@@ -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;
diff --git a/src/core/bs_bot.c b/src/core/bs_bot.c
index bc0e835fb..035dbcfff 100644
--- a/src/core/bs_bot.c
+++ b/src/core/bs_bot.c
@@ -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) {
diff --git a/src/core/bs_fantasy_seen.c b/src/core/bs_fantasy_seen.c
index 486df3a8f..f09dbeb92 100644
--- a/src/core/bs_fantasy_seen.c
+++ b/src/core/bs_fantasy_seen.c
@@ -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);
diff --git a/src/core/bs_say.c b/src/core/bs_say.c
index 76f14ee76..dc0d751c5 100644
--- a/src/core/bs_say.c
+++ b/src/core/bs_say.c
@@ -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);