]> jfr.im git - solanum.git/blobdiff - extensions/extb_extgecos.c
Merge pull request #302 from edk0/sasl-usercloak
[solanum.git] / extensions / extb_extgecos.c
index c3a311f21f5c17bec77eaccd401be0f55474b0a8..7dbf73f1762cdead3deb283b619bc8dccf6d4222 100644 (file)
@@ -2,8 +2,6 @@
  * Extended extban type: bans all users with matching nick!user@host#gecos.
  * Requested by Lockwood.
  *  - nenolod
- *
- * $Id: extb_realname.c 1339 2006-05-17 00:45:40Z nenolod $
  */
 
 #include "stdinc.h"
 #include "client.h"
 #include "ircd.h"
 
+static const char extb_desc[] = "Extended mask ($x) extban type";
+
 static int _modinit(void);
 static void _moddeinit(void);
 static int eb_extended(const char *data, struct Client *client_p, struct Channel *chptr, long mode_type);
 
-DECLARE_MODULE_AV1(extb_extended, _modinit, _moddeinit, NULL, NULL, NULL, "$Revision: 1339 $");
+DECLARE_MODULE_AV2(extb_extended, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, extb_desc);
 
 static int
 _modinit(void)
@@ -42,14 +42,14 @@ static int eb_extended(const char *data, struct Client *client_p,
        if (data == NULL)
                return EXTBAN_INVALID;
 
-       rb_snprintf(buf, BUFSIZE, "%s!%s@%s#%s",
+       snprintf(buf, BUFSIZE, "%s!%s@%s#%s",
                client_p->name, client_p->username, client_p->host, client_p->info);
 
        ret = match(data, buf) ? EXTBAN_MATCH : EXTBAN_NOMATCH;
 
        if (ret == EXTBAN_NOMATCH && IsDynSpoof(client_p))
        {
-               rb_snprintf(buf, BUFSIZE, "%s!%s@%s#%s",
+               snprintf(buf, BUFSIZE, "%s!%s@%s#%s",
                        client_p->name, client_p->username, client_p->orighost, client_p->info);
 
                ret = match(data, buf) ? EXTBAN_MATCH : EXTBAN_NOMATCH;