summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/cs_appendtopic.c4
-rw-r--r--src/modules/cs_enforce.c4
-rw-r--r--src/modules/os_info.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/cs_appendtopic.c b/src/modules/cs_appendtopic.c
index 96cef82b7..1fa885559 100644
--- a/src/modules/cs_appendtopic.c
+++ b/src/modules/cs_appendtopic.c
@@ -105,11 +105,11 @@ class CommandCSAppendTopic : public Command
ircdproto->SendMode(NULL, c->name, "+o %s", Config.s_ChanServ);
}
}
- ircdproto->SendTopic(whosends(ci), c->name, u->nick, topic, c->topic_time);
+ ircdproto->SendTopic(whosends(ci), c, u->nick, topic);
if (ircd->join2set)
{
if (whosends(ci) == findbot(Config.s_ChanServ))
- ircdproto->SendPart(findbot(Config.s_ChanServ), c->name, NULL);
+ ircdproto->SendPart(findbot(Config.s_ChanServ), c, NULL);
}
}
return MOD_CONT;
diff --git a/src/modules/cs_enforce.c b/src/modules/cs_enforce.c
index d02ddd224..2bf692233 100644
--- a/src/modules/cs_enforce.c
+++ b/src/modules/cs_enforce.c
@@ -121,7 +121,7 @@ class CommandCSEnforce : public Command
get_idealban(ci, u, mask, sizeof(mask));
reason = getstring(u, CHAN_NOT_ALLOWED_TO_JOIN);
c->SetMode(NULL, CMODE_BAN, mask);
- ircdproto->SendKick(whosends(ci), ci->name, u->nick, "%s", reason);
+ ircdproto->SendKick(whosends(ci), ci->c, u, "%s", reason);
av[0] = ci->name;
av[1] = u->nick;
av[2] = reason;
@@ -162,7 +162,7 @@ class CommandCSEnforce : public Command
{
c->SetMode(NULL, CMODE_BAN, mask);
}
- ircdproto->SendKick(whosends(ci), ci->name, u->nick, "%s", reason);
+ ircdproto->SendKick(whosends(ci), ci->c, u, "%s", reason);
av[0] = ci->name;
av[1] = u->nick;
av[2] = reason;
diff --git a/src/modules/os_info.c b/src/modules/os_info.c
index f439a362f..194e2e8ee 100644
--- a/src/modules/os_info.c
+++ b/src/modules/os_info.c
@@ -550,7 +550,7 @@ class OSInfo : public Module
if (!(out = fopen(OSInfoDBName, "w")))
{
alog("os_info: ERROR: can not open the database file!");
- ircdproto->SendGlobops(Config.s_OperServ, "os_info: ERROR: can not open the database file!");
+ ircdproto->SendGlobops(findbot(Config.s_OperServ), "os_info: ERROR: can not open the database file!");
ret = 1;
}
else