X-Git-Url: https://mudpy.org/gitweb?a=blobdiff_plain;f=mudpy.py;h=89ad6b38a89097aa53b3beb18bc478fb08700414;hb=7943b5240edbd0ea9e0a7c2839a58d212a188b46;hp=f6b600ba089590736fa4eededf24ba8c38efff72;hpb=3e018a1c4c3724d2d4a7247f6ed2ef3487f77e99;p=mudpy.git diff --git a/mudpy.py b/mudpy.py index f6b600b..89ad6b3 100644 --- a/mudpy.py +++ b/mudpy.py @@ -651,8 +651,8 @@ class User: # find and replace macros in the output output = replace_macros(self, output) - # wrap the text at 80 characters - output = wrap_ansi_text(output, 80) + # wrap the text at 79 characters + output = wrap_ansi_text(output, 79) # tack the terminator back on if terminate: output += self.terminator @@ -1144,14 +1144,6 @@ def escape_macros(text): """Escapes replacement macros in text.""" return text.replace("$(", "$_(") -def check_time(frequency): - """Check for a factor of the current increment count.""" - if type(frequency) is str: - frequency = universe.categories["internal"]["time"].getint(frequency) - if not "counters" in universe.categories["internal"]: - Element("internal:counters", universe) - return not universe.categories["internal"]["counters"].getint("elapsed") % frequency - def on_pulse(): """The things which should happen on each pulse, aside from reloads.""" @@ -1168,7 +1160,7 @@ def on_pulse(): # update the log every now and then if not universe.categories["internal"]["counters"].getint("mark"): - universe.save() + log(str(len(universe.userlist)) + " connection(s)") universe.categories["internal"]["counters"].set("mark", universe.categories["internal"]["time"].getint("frequency_log")) else: universe.categories["internal"]["counters"].set("mark", universe.categories["internal"]["counters"].getint("mark") - 1)