]> jfr.im git - solanum.git/blobdiff - src/client.c
away stuff from ratbox3
[solanum.git] / src / client.c
index c4ade72a543dd77d6ea5565f75179ae59fde9941..e035c0cf3326425d37cbc292cad46462cab7f4e3 100644 (file)
@@ -1936,6 +1936,23 @@ free_user(struct User *user, struct Client *client_p)
        }
 }
 
+void\r
+allocate_away(struct Client *client_p)\r
+{\r
+       if(client_p->user->away == NULL)\r
+               client_p->user->away = rb_bh_alloc(away_heap);  \r
+}\r
+\r
+\r
+void\r
+free_away(struct Client *client_p)\r
+{\r
+       if(client_p->user->away != NULL) {\r
+               rb_bh_free(away_heap, client_p->user->away);\r
+               client_p->user->away = NULL;\r
+       }\r
+}
+
 void
 init_uid(void)
 {