Browse Source

r_banned() can be inlined

Bryan Drewery 11 years ago
parent
commit
8f0b03ee9d
2 changed files with 6 additions and 7 deletions
  1. 0 6
      src/response.cc
  2. 6 1
      src/response.h

+ 0 - 6
src/response.cc

@@ -14,10 +14,4 @@ response(response_t type)
 {
   return res[type].res[randint(res[type].size)];
 }
-
-const char *
-r_banned(struct chanset_t *chan)
-{
-  return response(RES_BANNED);
-}
 /* vim: set sts=2 sw=2 ts=8 et: */

+ 6 - 1
src/response.h

@@ -25,6 +25,11 @@ enum response_t {
 };
 
 const char *response(response_t);
-const char *r_banned(struct chanset_t* chan);
+
+inline const char *
+r_banned(struct chanset_t *chan)
+{
+  return response(RES_BANNED);
+}
 
 #endif /* !_RESPONSE_H */