X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=mudpy.py;h=3650f89e0c65ff5c1d9e64e75e1dd29aa135c508;hp=5a1b4f73e38828aeed735d5cb54095fbb432f889;hb=7420c4997a8b1585f83b54aaefe282fe5c35a623;hpb=138ac7e001abf8940f3cb2a419ef3dd3556d0086 diff --git a/mudpy.py b/mudpy.py index 5a1b4f7..3650f89 100644 --- a/mudpy.py +++ b/mudpy.py @@ -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)