mirror of
https://github.com/anope/anope.git
synced 2026-07-04 16:33:13 +02:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user