summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 21:22:12 +0000
committerNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 21:22:12 +0000
commit0f8f66328d766b0a728d27105a1c1d6feefc4670 (patch)
tree0a899ecdf77d5138a33ef22d146c851721d40a2a /src
parent1f579c0fe2f139fccf5fdfb971080ba99cfdcdab (diff)
Replaced anope_SendSquit() with direct call to SendSquit() in IRCDProto class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1349 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/ircd.c5
-rw-r--r--src/main.c6
-rw-r--r--src/servers.c2
3 files changed, 4 insertions, 9 deletions
diff --git a/src/ircd.c b/src/ircd.c
index 8191aad9a..a5341c791 100644
--- a/src/ircd.c
+++ b/src/ircd.c
@@ -43,11 +43,6 @@ void anope_ProcessUsermodes(User *user, int ac, const char **av)
ircdproto->ProcessUsermodes(user, ac, av);
}
-void anope_SendSquit(const char *servname, const char *message)
-{
- ircdproto->SendSquit(servname, message);
-}
-
void anope_SendSVSO(const char *source, const char *nick, const char *flag)
{
ircdproto->SendSVSO(source, nick, flag);
diff --git a/src/main.c b/src/main.c
index 9e16b6e53..5602e1d00 100644
--- a/src/main.c
+++ b/src/main.c
@@ -234,7 +234,7 @@ static void services_restart(void)
send_event(EVENT_RESTART, 1, EVENT_START);
if (!quitmsg)
quitmsg = "Restarting";
- anope_SendSquit(ServerName, quitmsg);
+ ircdproto->SendSquit(ServerName, quitmsg);
disconn(servsock);
close_log();
/* First don't unload protocol module, then do so */
@@ -283,7 +283,7 @@ static void services_shutdown(void)
quitmsg = "Terminating, reason unknown";
alog("%s", quitmsg);
if (started) {
- anope_SendSquit(ServerName, quitmsg);
+ ircdproto->SendSquit(ServerName, quitmsg);
Anope_Free(uplink);
Anope_Free(mod_current_buffer);
if (ircd->chanmodes) {
@@ -647,7 +647,7 @@ int main(int ac, char **av, char **envp)
alog("Restarting");
if (!quitmsg)
quitmsg = "Restarting";
- anope_SendSquit(ServerName, quitmsg);
+ ircdproto->SendSquit(ServerName, quitmsg);
disconn(servsock);
close_log();
#ifdef _WIN32
diff --git a/src/servers.c b/src/servers.c
index 95f705435..689595d1e 100644
--- a/src/servers.c
+++ b/src/servers.c
@@ -421,7 +421,7 @@ void do_squit(const char *source, int ac, const char **av)
alog("debug: Sending UNCONNECT SQUIT for %s", s->name);
}
/* need to fix */
- anope_SendSquit(s->name, buf);
+ ircdproto->SendSquit(s->name, buf);
}
}