1
0
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:
Adam-
2009-12-16 02:25:38 +00:00
parent 98aa38d800
commit c6e3324b30
57 changed files with 332 additions and 377 deletions
+2 -2
View File
@@ -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;
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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