~ubuntu-branches/ubuntu/hardy/pennmush/hardy

« back to all changes in this revision

Viewing changes to hdrs/mushdb.h

  • Committer: Bazaar Package Importer
  • Author(s): Ervin Hearn III
  • Date: 2007-10-14 22:26:42 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20071014222642-3vt0pg0vxdiuxq5z
Tags: 1.8.2p7-1
* New upstream release
* Latest upstream release fixes possible DoS vulnerabilities in
  pennmush (Closes: #436249)
* Added missing build target to debian/rules (Closes: #395786)
* Corrected FTBFS on GNU/kFreeBSD due to timestamp skew
  (Closes: #403711)
* Applied patch to correct control file to make package binNMU safe
  (Closes: #435951)

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
#define Pemit_All(x)    (Wizard(x) || has_power_by_name(x,"PEMIT_ALL",NOTYPE))
47
47
#define Sql_Ok(x)       (Wizard(x) || has_power_by_name(x, "SQL_OK", NOTYPE))
48
48
#define Can_Debit(x)    (Wizard(x) || has_power_by_name(x, "DEBIT", NOTYPE))
 
49
#define Many_Attribs(x)    (has_power_by_name(x, "MANY_ATTRIBS", NOTYPE))
 
50
#define Can_Pueblo_Send(x)       (Wizard(x) || has_power_by_name(x, "PUEBLO_SEND", NOTYPE))
49
51
 
50
52
/* Permission macros */
51
53
#define Can_See_Flag(p,t,f) ((!(f->perms & (F_DARK | F_MDARK | F_ODARK | F_DISABLED)) || \
108
110
        ((getlock(x, Forward_Lock) != TRUE_BOOLEXP) && \
109
111
         eval_lock(p, x, Forward_Lock)))
110
112
 
 
113
/* Can p forward a mail message to x (via @mailforwardlist)? */
 
114
#define Can_MailForward(p,x)  \
 
115
    (IsPlayer(x) && (controls(p,x) || \
 
116
        ((getlock(x, MailForward_Lock) != TRUE_BOOLEXP) && \
 
117
         eval_lock(p, x, MailForward_Lock))))
 
118
 
 
119
/* Can from pass to's @lock/interact? */
 
120
#define Pass_Interact_Lock(from,to) \
 
121
  (Loud(from) || eval_lock(from, to, Interact_Lock))
 
122
 
111
123
/* How many pennies can you have? */
112
124
#define Max_Pennies(p) (Guest(p) ? MAX_GUEST_PENNIES : MAX_PENNIES)
113
125
#define Paycheck(p) (Guest(p) ? GUEST_PAY_CHECK : PAY_CHECK)
146
158
#define RDBF_TTYPE              0x02
147
159
#define RDBF_PUEBLO_CHECKSUM    0x04
148
160
 
149
 
#endif                          /* __DB_H */
 
161
#endif                          /* __DB_H */