PennMUSH Community

Changeset 1148

Show
Ignore:
Timestamp:
11/16/07 08:12:41 (10 months ago)
Author:
shawnw
Message:

#6577: hook @power

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.3/branches/devel/CHANGES.183

    r1147 r1148  
    3232   and/or socket timeouts instead. (The main event loop still uses 
    3333   select() for now.) 
    34  * @motd gives better feedback when clearing a message. 
     34 
     35Flags and powers: 
    3536 * The announce power now also grants the ability to change the motd. 
    3637   Suggested by Yuriko. 
    37  
    38 @commands: 
     38 * New hook power grants rights to use @hook. Suggested by Paige. 
     39 
     40Commands: 
     41 * @motd gives better feedback when clearing a message. 
    3942 * The @tport/@otport/@atport/etc. attributes that get evalulated on a 
    4043   @teleport now get the dbref of the object doing the teleport in %0 
  • 1.8.3/branches/devel/game/txt/hlp/penntop.hlp

    r981 r1148  
    10501050  halt                  Can @halt others' objects and do @allhalt. 
    10511051  hide                  Can hide on the WHO list. 
     1052  hook                  Can use the @hook command. 
    10521053  idle                  No inactivity timeout. 
    10531054  link_anywhere         Can @link an exit to anyplace. 
  • 1.8.3/branches/devel/src/cmds.c

    r1097 r1148  
    440440  enum hook_type flags; 
    441441 
    442   if (!Wizard(player)) { 
     442  if (!(Wizard(player) || has_power_by_name(player, "HOOK", NOTYPE))) { 
    443443    notify(player, T("You need a fishing license to use that hook.")); 
    444444    return; 
  • 1.8.3/branches/devel/src/command.c

    r1066 r1148  
    155155  {"@HOOK", "LIST AFTER BEFORE IGNORE OVERRIDE", cmd_hook, 
    156156   CMD_T_ANY | CMD_T_EQSPLIT | CMD_T_RS_ARGS, 
    157    "WIZARD", 0}, 
     157   "WIZARD", "hook"}, 
    158158  {"@KICK", NULL, cmd_kick, CMD_T_ANY, "WIZARD", 0}, 
    159159 
     
    19411941    return; 
    19421942  } 
    1943   if (Wizard(player)) { 
     1943  if (Wizard(player) || has_power_by_name(player, "HOOK", NOTYPE)) { 
    19441944    if (GoodObject(cmd->hooks.before.obj)) 
    19451945      notify_format(player, "@hook/before: #%d/%s", 
  • 1.8.3/branches/devel/src/flags.c

    r1051 r1148  
    916916    add_power("Pueblo_Send", '\0', NOTYPE, F_WIZARD | F_LOG, F_ANY); 
    917917    add_power("Many_Attribs", '\0', NOTYPE, F_WIZARD | F_LOG, F_ANY); 
     918    add_power("hook", '\0', NOTYPE, F_WIZARD | F_LOG, F_ANY); 
    918919    /* Aliases for other servers */ 
    919920    if ((f = match_power("tport_anything")) && !match_power("tel_anything"))