]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/supported.c
Add is_halfop() and is_owner() and start using them in the new functions.
[irc/rqf/shadowircd.git] / src / supported.c
index 6c6b33c05ff8aae531fd6205cd76a14a6e1ce491..b892b50dd89e88488b0d9a70f41115912c2bd32a 100644 (file)
@@ -116,7 +116,7 @@ change_isupport(const char *name, const char *(*func)(const void *), const void
 {
        rb_dlink_node *ptr;
        struct isupportitem *item;
-       void *oldvalue;
+       const void *oldvalue;
 
        RB_DLINK_FOREACH(ptr, isupportlist.head)
        {
@@ -126,7 +126,7 @@ change_isupport(const char *name, const char *(*func)(const void *), const void
                {
                        oldvalue = item->param;
 
-                       item->name = name;
+                       // item->name = name;
                        item->func = func;
                        item->param = param;
 
@@ -324,4 +324,6 @@ init_isupport(void)
        add_isupport("FNC", isupport_string, "");
        add_isupport("TARGMAX", isupport_targmax, NULL);
        add_isupport("EXTBAN", isupport_extban, NULL);
+       add_isupport("WHOX", isupport_string, "");
+       add_isupport("CLIENTVER", isupport_string, "3.0");
 }