]> jfr.im git - solanum.git/blobdiff - modules/m_services.c
chmode: Get elevated access for op-only queries
[solanum.git] / modules / m_services.c
index b8a1f363ffc0d804a29b13be9e3ff036d19c942a..af7290646667cd7e8338bdfb6174940bf9a99d05 100644 (file)
@@ -160,7 +160,7 @@ me_rsfnc(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source
        struct Client *target_p;
        struct Client *exist_p;
        time_t newts, curts;
-       char note[NICKLEN + 10];
+       char note[NAMELEN + 10];
 
        if(!(source_p->flags & FLAGS_SERVICE))
        {
@@ -252,7 +252,7 @@ doit:
 
        del_all_accepts(target_p);
 
-       snprintf(note, NICKLEN + 10, "Nick: %s", target_p->name);
+       snprintf(note, sizeof(note), "Nick: %s", target_p->name);
        rb_note(target_p->localClient->F, note);
 }
 
@@ -334,7 +334,7 @@ h_svc_stats(hook_data_int *data)
        char statchar = (char) data->arg2;
        rb_dlink_node *ptr;
 
-       if (statchar == 'U' && IsOper(data->client))
+       if (statchar == 'U' && IsOperGeneral(data->client))
        {
                RB_DLINK_FOREACH(ptr, service_list.head)
                {