]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/s_serv.c
Note that blacklist{} only accepts host/reason pairs, no host+host+reason.
[irc/rqf/shadowircd.git] / src / s_serv.c
index 10c0fab05a6c971e8ec29e5ff052d2df6c21535f..88fecddc97ed877e64e45285acf3a68e131bac27 100644 (file)
@@ -474,6 +474,8 @@ burst_TS6(struct Client *client_p)
 
        RB_DLINK_FOREACH(ptr, global_client_list.head)
        {
+               const char *awaymsg = NULL;
+
                target_p = ptr->data;
 
                if(!IsPerson(target_p))
@@ -516,10 +518,10 @@ burst_TS6(struct Client *client_p)
                                                use_id(target_p), target_p->user->suser);
                }
 
-               if(ConfigFileEntry.burst_away && !EmptyString(target_p->user->away))
+               if(ConfigFileEntry.burst_away && (awaymsg = get_metadata(target_p, "away")) != NULL)
                        sendto_one(client_p, ":%s AWAY :%s",
                                   use_id(target_p),
-                                  target_p->user->away);
+                                  awaymsg);
 
                hclientinfo.target = target_p;
                call_hook(h_burst_client, &hclientinfo);