Support JOIN
authorJelmer Vernooij <jelmer@samba.org>
Fri, 6 Apr 2007 21:11:42 +0000 (23:11 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Fri, 6 Apr 2007 21:11:42 +0000 (23:11 +0200)
NEWS
src/admin.c

diff --git a/NEWS b/NEWS
index 7c93ed731ebfcce55e13f3ac1fab0d55e88f5f59..641a6a990c592efd332fdf48d89028f6a92f57c5 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -75,7 +75,7 @@ Ctrlproxy 3.0.2 UNRELEASED
     * Remove is_private from line struct (#12).
                (patch by Emanuele Giaquinta <e.giaquinta@glauco.it>)
 
-       * Implement ISON, USERHOST, WHO for admin networks. (#99)
+       * Implement ISON, USERHOST, WHO, JOIN for admin networks. (#99)
 
   PORTABILITY
 
index 29831cc74c9b77d79ca9919d305eaf407c95ea01..4e00f4cffb07d522bdc687809e40c32877d24b03 100644 (file)
@@ -632,6 +632,11 @@ static gboolean admin_to_server (struct network *n, struct client *c, const stru
 
                virtual_network_recv_response(n, RPL_ENDOFWHO, l->args[1], "End of /WHO list.", NULL);
 
+               return TRUE;
+       } else if (!g_strcasecmp(l->args[0], "JOIN")) {
+               if (strcmp(l->args[1], ADMIN_CHANNEL) != 0) {
+                       virtual_network_recv_response(n, ERR_NOSUCHCHANNEL, l->args[1], "No such channel", NULL);
+               }
                return TRUE;
        } else {
                virtual_network_recv_response(n, ERR_UNKNOWNCOMMAND, l->args[0], "Unknown command", NULL);