]> jfr.im git - solanum.git/blobdiff - modules/m_ison.c
Add ACCOUNTEXTBAN ISUPPORT token
[solanum.git] / modules / m_ison.c
index bb545cfdbc2179111799a4cb59e072b6e62c8efc..9f4dd577cea9f36a69622a9237272160e1bfeaf5 100644 (file)
@@ -37,7 +37,9 @@
 
 #include <string.h>
 
-static int m_ison(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+static const char ison_desc[] = "Provides the ISON command to check if a set of users is online";
+
+static void m_ison(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
 
 struct Message ison_msgtab = {
        "ISON", 0, 0, 0, 0,
@@ -46,8 +48,6 @@ struct Message ison_msgtab = {
 
 mapi_clist_av1 ison_clist[] = { &ison_msgtab, NULL };
 
-static const char ison_desc[] = "Provides the ISON command to check if a set of users is online";
-
 DECLARE_MODULE_AV2(ison, NULL, NULL, ison_clist, NULL, NULL, NULL, NULL, ison_desc);
 
 static char buf[BUFSIZE];
@@ -63,7 +63,7 @@ static char buf2[BUFSIZE];
  * format:
  * ISON :nicklist
  */
-static int
+static void
 m_ison(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        struct Client *target_p;
@@ -81,7 +81,7 @@ m_ison(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
        len = strlen(buf);
        current_insert_point = buf + len;
 
-       /* rfc1489 is ambigious about how to handle ISON
+       /* rfc1459 is ambigious about how to handle ISON
         * this should handle both interpretations.
         */
        for (i = 1; i < parc; i++)
@@ -89,7 +89,7 @@ m_ison(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
                char *cs = LOCAL_COPY(parv[i]);
                for (nick = rb_strtok_r(cs, " ", &p); nick; nick = rb_strtok_r(NULL, " ", &p))
                {
-                       target_p = find_named_client(nick);
+                       target_p = find_named_person(nick);
 
                        if(target_p != NULL)
                        {
@@ -120,6 +120,4 @@ m_ison(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
        *current_insert_point2 = '\0';
 
        sendto_one(source_p, "%s", buf);
-
-       return 0;
 }