--- userpoints.old.module	2007-08-27 19:28:58.000000000 -0600
+++ userpoints.new.module	2007-12-31 18:15:34.683250000 -0700
@@ -212,6 +212,15 @@ function userpoints_get_current_points($
 }
 
 /**
+ * @param uid: user id of the user
+ *
+ * @return number of max points in that user's account
+ */
+function userpoints_get_max_points($uid = 0) {
+  return (int)db_result(db_query('SELECT max_points FROM {userpoints} WHERE uid = %d', $uid));
+}
+
+/**
  * @param op: operation to be performed.
  *    'points' 
  *      modules should use this to award points
