From c6e3324b302aa9ef4cf6bdf002719d8bf2908a0b Mon Sep 17 00:00:00 2001 From: Adam- Date: Wed, 16 Dec 2009 02:25:38 +0000 Subject: Made many of the functions in IRCDProto accept the relative object pointers instea of char* everywhere, and updated TODO git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2706 5417fbe8-f217-4b02-8779-1006273d7864 --- src/modules/cs_appendtopic.c | 4 ++-- src/modules/cs_enforce.c | 4 ++-- src/modules/os_info.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules') 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 -- cgit