diff options
author | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 21:02:37 +0000 |
---|---|---|
committer | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 21:02:37 +0000 |
commit | 6c305a3d6731191899f4331be56a071dab66d194 (patch) | |
tree | 59a7bf69f0a2b035bc84580552e0745977307a82 /src/hostserv.c | |
parent | f3f1b97a1ab782a3419fe20ae06d3e3535a4ddae (diff) |
Replaced anope_SendGlobops() with direct call to SendGlobops() in IRCDProto class.
Added SendGlobopsInternal() function to IRCDProto class, now SendGlobops() is a stub to handle varargs.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1347 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/hostserv.c')
-rw-r--r-- | src/hostserv.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/hostserv.c b/src/hostserv.c index a8a802a56..ac42fd8ae 100644 --- a/src/hostserv.c +++ b/src/hostserv.c @@ -6,9 +6,9 @@ * Please read COPYING and README for further details. * * Based on the original code of Epona by Lara. - * Based on the original code of Services by Andy Church. - * - * $Id$ + * Based on the original code of Services by Andy Church. + * + * $Id$ * */ @@ -104,7 +104,7 @@ HostCore *createHostCorelist(HostCore * next, char *nick, char *vIdent, next = (HostCore *)malloc(sizeof(HostCore)); if (next == NULL) { - anope_SendGlobops(s_HostServ, + ircdproto->SendGlobops(s_HostServ, "Unable to allocate memory to create the vHost LL, problems i sense.."); } else { next->nick = (char *)malloc(sizeof(char) * strlen(nick) + 1); @@ -114,7 +114,7 @@ HostCore *createHostCorelist(HostCore * next, char *nick, char *vIdent, next->vIdent = (char *)malloc(sizeof(char) * strlen(vIdent) + 1); if ((next->nick == NULL) || (next->vHost == NULL) || (next->creator == NULL)) { - anope_SendGlobops(s_HostServ, + ircdproto->SendGlobops(s_HostServ, "Unable to allocate memory to create the vHost LL, problems i sense.."); return NULL; } @@ -123,7 +123,7 @@ HostCore *createHostCorelist(HostCore * next, char *nick, char *vIdent, strcpy(next->creator, creator); if (vIdent) { if ((next->vIdent == NULL)) { - anope_SendGlobops(s_HostServ, + ircdproto->SendGlobops(s_HostServ, "Unable to allocate memory to create the vHost LL, problems i sense.."); return NULL; } @@ -192,7 +192,7 @@ HostCore *insertHostCore(HostCore * head, HostCore * prev, char *nick, newCore = (HostCore *)malloc(sizeof(HostCore)); if (newCore == NULL) { - anope_SendGlobops(s_HostServ, + ircdproto->SendGlobops(s_HostServ, "Unable to allocate memory to insert into the vHost LL, problems i sense.."); return NULL; } else { @@ -203,7 +203,7 @@ HostCore *insertHostCore(HostCore * head, HostCore * prev, char *nick, newCore->vIdent = (char *)malloc(sizeof(char) * strlen(vIdent) + 1); if ((newCore->nick == NULL) || (newCore->vHost == NULL) || (newCore->creator == NULL)) { - anope_SendGlobops(s_HostServ, + ircdproto->SendGlobops(s_HostServ, "Unable to allocate memory to create the vHost LL, problems i sense.."); return NULL; } @@ -212,7 +212,7 @@ HostCore *insertHostCore(HostCore * head, HostCore * prev, char *nick, strcpy(newCore->creator, creator); if (vIdent) { if ((newCore->vIdent == NULL)) { - anope_SendGlobops(s_HostServ, + ircdproto->SendGlobops(s_HostServ, "Unable to allocate memory to create the vHost LL, problems i sense.."); return NULL; } @@ -463,7 +463,7 @@ void load_hs_dbase_v3(dbFILE * f) restore_db(f); \ log_perror("Write error on %s", HostDBName); \ if (time(NULL) - lastwarn > WarningTimeout) { \ - anope_SendGlobops(NULL, "Write error on %s: %s", HostDBName, \ + ircdproto->SendGlobops(NULL, "Write error on %s: %s", HostDBName, \ strerror(errno)); \ lastwarn = time(NULL); \ } \ @@ -607,7 +607,7 @@ int is_host_remover(User * u) } /* - * Sets the last_usermak properly. Using virtual ident and/or host + * Sets the last_usermak properly. Using virtual ident and/or host */ void set_lastmask(User * u) { |