no_pki~1.txt

From: George (greerga@CIRCLEMUD.ORG)
Date: 03/22/98


-int perform_move(struct char_data *ch, int dir, int need_specials_check)
-{
[...]
-  else if (!EXIT(ch, dir) || EXIT(ch, dir)->to_room == NOWHERE)
-    send_to_char("Alas, you cannot go that way...\r\n", ch);
+   /* prevents players from using AFK as proection*/
+  else if (PRF_FLAGGED(ch, PLR_AFK)) /* this varies */
+    send_to_char("Try removing your AFK flag first", ch);

Two notes:

1) It would be better to have the 'afk' check in command_interpreter().
(With, of course, code that makes sure it doesn't prevent you from un-afking.)

2) I would recommend against using '-' as a reference indicator.  People
familiar with patches are going to be a little disoriented. It's best to
just not prefix the reference lines with anything, it's even less work.

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST