Add RPCHAT privilege to receive pages as well as send them
authorAri Johnson <ari@theari.com>
Fri, 9 Jan 2015 15:49:41 +0000 (10:49 -0500)
committerAri Johnson <ari@theari.com>
Fri, 9 Jan 2015 15:49:41 +0000 (10:49 -0500)
src/speech.c

index 3ae5ae556d364c5ed62fea14b41a20c6ce22e32b..713f95094d142f0d6f01e48d122c4bff796567d0 100644 (file)
@@ -729,12 +729,14 @@ do_page(dbref player, const char *arg1, const char *arg2, dbref cause,
        fail_lock(player, target, Page_Lock, NULL, NOTHING);
        safe_chr(' ', tbuf, &tp);
        safe_str_space(Name(target), tbuf, &tp);
-      } else if(RPMODE(target) && LEVEL(player) < 23 && LEVEL(target) < 23 ) {
+#ifdef RPMODE_SYS
+      } else if(RPMODE(target) && !(Can_RPCHAT(target) || (LEVEL(player) >= 23 && LEVEL(target) >= 23))) {
              page_return(player, target, 
                   "RPMode", "RPMODE", 
                      tprintf(T("%s is in RPMode and can not communicate OOCly at this moment."), Name(target)));
                              safe_chr(' ', tbuf , &tp);
                              safe_str_space(current, tbuf, &tp);
+#endif
                      } else if(hidden(target) && !CanSee(player,target)){
              /* this is a page that appears bad, but is good */
                  page_return(player, target, "Away", "AWAY",