1. 30 Apr, 2001 5 commits
    • Unknown User's avatar
    • Justin Mitchell's avatar
      10b408f9
    • Finn Wilcox's avatar
      zod/mrod/kick/remove now use quotetext() to quote the 'reason' string. · 53632253
      Finn Wilcox authored
      This fixes a security hole similar to the one with !force, but it needs
      less privs to exploit.  This script would have given su to anyone with the
      advanced script priv (after zodding themselves):
        WHOAMI USER
        TOASCII FORCE_STATUS 2
        EXEC "zod $USER fish|${FORCE_STATUS}xxxx+s"
      
      PS: This one wasnt my fault :-)
      53632253
    • Finn Wilcox's avatar
      Fixed a *huge* security hole in the main command table - !user didnt · 7bdbc036
      Finn Wilcox authored
      require any privs at all.
      Looks like this was my fault - it must have been when I added the non-
      forceable command flag.  (doh!)
      
      Corrected some typos in comments in expand.c
      
      Removed some logging code in main.c (which logged every command typed in
      a devel version.  Probably not necessary anymore).
      
      Superusers can now run development versions (they don't need the D
      special flag anymore).
      7bdbc036
    • Finn Wilcox's avatar
      Changed quotetext() to return the new quoted string (instead of writing · ca390b5b
      Finn Wilcox authored
      over the original string).  This should reduce the risk of buffer
      overruns.
      
      The text of a !force'd command is now quoted like chat text.  Previously
      you could give someone su status with a script like:
        TOASCII CHAR 2
        BOARDEXEC "force $USER fish|${CHAR}xxxx+s"
      Of course only su's could use BOARDEXEC, but someone running an old
      version could be forced to load and run the script.
      
      Improvements to permanent protection:
      
      Usage messages are shown if you give the wrong number of arguments to
      .protect
      
      You can no longer remove someone's level 1 permanent protection if you
      only have the 'P' chatpriv but zero protpower.
      
      You now see the message "you have just been given temporary protection"
      if someone does .protect <yourname> and you have protpower > 0.
      ca390b5b
  2. 24 Apr, 2001 1 commit
  3. 15 Apr, 2001 2 commits
    • Chris Fry's avatar
      · 082d562e
      Chris Fry authored
      MUDEXEC now works
      
      Fry
      082d562e
    • Chris Fry's avatar
      · fc5dac77
      Chris Fry authored
      Updated 'force' catching so if you have the advanced script priv it allows
      people to catch forces in scripts, but only if you have SU can you block
      forces.
      
      For some *bizarre* reason someone (finnw according to the cvs history log)
      had changed it so that any old person could happily block forces by making a
      script of:
      
      function forced
      endfunc
      
      way to go finnw..
      
      ---
      
      Also added 'mudexec' to allow execution of mud commands from scripts. Err..
      it doesnt do much atm, but am working on it ;)
      
      Fry
      fc5dac77
  4. 14 Apr, 2001 1 commit
    • Chris Fry's avatar
      · 8a8175e9
      Chris Fry authored
      [slaps cmc around a bit]
      I've now added the comma's seperating the bork fields so it compiles :)
      
      Chris
      8a8175e9
  5. 21 Mar, 2001 1 commit
    • Chris McKenna's avatar
      · b424efc8
      Chris McKenna authored
      Added several more babelfish filters
      
      Chris
      b424efc8
  6. 16 Mar, 2001 2 commits
    • Chris Fry's avatar
      · 513387a6
      Chris Fry authored
      Several fixes - none all that important.
      
      The only _slightly_ major one is the addition of '[help' so that the error
      message "invalid command 'help'. See '[help' for a list of commands" wont
      appear any more :)
      
      Fry
      513387a6
    • Chris Fry's avatar
      · 5a410ac9
      Chris Fry authored
      New rooms and fixed rooms
      
      Fry
      5a410ac9
  7. 14 Mar, 2001 1 commit
    • Chris Fry's avatar
      · 6d84c770
      Chris Fry authored
      Fixed the 'censor' gag filter (again)
      
      Moved all the 'sport' related censor gags to a new filter (gag user nosport)
      
      Fixed finnws silly (but understandable) '!usr passwd' bug that made any word
      beginning with 'p' run '!user protection' instead.
      
      Fry
      6d84c770
  8. 01 Mar, 2001 1 commit
    • Chris McKenna's avatar
      · 66d2204a
      Chris McKenna authored
      Added to censor gag again, this time adding a few sports related filters.
      66d2204a
  9. 28 Feb, 2001 1 commit
    • Chris McKenna's avatar
      · 4068a1c1
      Chris McKenna authored
      Added another couple of filters to the censor gag.
      
      Chris
      4068a1c1
  10. 26 Feb, 2001 1 commit
    • Chris McKenna's avatar
      · 021a46f0
      Chris McKenna authored
      Made a few minor changes to the censor gag.
      021a46f0
  11. 22 Feb, 2001 1 commit
    • Chris McKenna's avatar
      · 2040e90f
      Chris McKenna authored
      I have added quite a few more translations to the babel fish gag
      
      Chris
      2040e90f
  12. 01 Jan, 2001 1 commit
    • Chris Fry's avatar
      · 316030bd
      Chris Fry authored
      Happy new year everyone.
      
      I fixed that command-line bug in mw, where you could do '.    raw Hello'. It
      now acts properly rather than add the command name to the front again.
      
      Oh, i'm back off to Leamington now, so I wont see you lot!
      
      PS: Get a web-mw talker up and running ASAP Please!!! :)
      
      Fry
      316030bd
  13. 31 Dec, 2000 1 commit
    • Chris Fry's avatar
      · aca5e783
      Chris Fry authored
      Added the 'auto-catchup-all-but-the-last-few-messages' feature for new
      users.
      
      Basically, users get any messages in a folder less than a week old, up to a
      max of 10 messages. Atm, leaves around 20 of them, and 10 of them are in
      'suggest' I think.
      
      Seems quite a reasonable load to me - not daunting, yet gives quite a good
      background in messages.
      
      Fry
      aca5e783
  14. 27 Dec, 2000 3 commits
    • Chris Fry's avatar
      · 81d4d1b5
      Chris Fry authored
      Ooops. slight mistake. Will work now, rather than segv'ing :)
      
      Fry
      81d4d1b5
    • Chris Fry's avatar
      · 5599b23b
      Chris Fry authored
      ZOD's are now room specific (although 'leaving talker' message still
      appears).
      
      Fry
      5599b23b
    • Chris Fry's avatar
      · 990cf5fe
      Chris Fry authored
      Added back in the 'Data Protection Act' message when a new user joins. I
      dont know why this was removed (been gone for a while), but it is useful,
      and also tells people how to *CANCEL* their loggin, which is a useful bit of
      knowledge no-one seems to know unless told.
      
      Oh, 'initfunc's now auto-load when a '.load <file>' is done. There is now a
      new flag for each function called 'new' which is set on load, and unset when
      checked for initialisation. That way, only newly read functions are
      re-inited, to stop variables being reset (which is annoying).
      
      Fry
      990cf5fe
  15. 26 Dec, 2000 2 commits
    • Chris Fry's avatar
      · b85b98f1
      Chris Fry authored
      Fixed a couple of mistakes in bork.h, and initialised 'colr' to NULL in
      display_message so it doesnt give that annoying error on compile.
      
      Fry
      
      PS: you lot havent made many changes have you? :)
      PPS: Finnw, interesting 'protect' stuff - i'll be interested to see how that
           develops.
      PPPS: i'm have a list of many many many other things to fix in mw which dont
            seem to have got done while i was away, so expect a couple (not many)
            more updates :)
      b85b98f1
    • Chris McKenna's avatar
      · f8fa283a
      Chris McKenna authored
      More babel fish gags added
      
      Chris
      f8fa283a
  16. 13 Dec, 2000 2 commits
    • Chris McKenna's avatar
      · 7375a776
      Chris McKenna authored
      Added more filters to the bork.h file
      7375a776
    • Chris McKenna's avatar
      · 91a4ed72
      Chris McKenna authored
      Corrected a couple of spelling errors in babel gag and added a couple of
      different tenses for existing changes (eg. post -> stamp now also gives
      posted -> stamped).
      
      Chris
      91a4ed72
  17. 12 Dec, 2000 3 commits
    • Finn Wilcox's avatar
      · 3232dce1
      Finn Wilcox authored
      Added "permanent protect" function.  Help page coming soon.
      Main commands:
      !user protection <user>  - to give someone the priv, eg "/4" means they
      can give permanent protection up to level 4.  They will need the 'P'
      chatpriv as well for it to work.
      
      .protect <user> <0-4>  - to protect someone
      This is not an extension of the 'p' flag - it is a new one which has
      a similar effect.  Unlike the 'p' chatmode it is sticky.
      
      The who list format is changed slightly for people with the priv.
      Users without it shouldn't notice any difference.
      
      This feature is intended for keeping users gagged/frozen if necessary
      (eg if they are being abusive), without having to remove their privs.
      3232dce1
    • Finn Wilcox's avatar
      · e864f231
      Finn Wilcox authored
      Fixed some syntax errors
      e864f231
    • Chris McKenna's avatar
      · 0903f5b7
      Chris McKenna authored
      
      added babel and annoy gag filters.
      
      Chris
      0903f5b7
  18. 11 Dec, 2000 1 commit
    • Finn Wilcox's avatar
      · b0c0af52
      Finn Wilcox authored
      Resolved some conflicts in bork.h
      
      NB - cmckenna:  If you get lines with "<<<<<" or ">>>>>" in a file
      when you do a cvs update, it means there was a conflict (someone else
      changed the lines since you did the checkout).  You have to manually
      merge the two sections.  It's fairly easy with initialiser lists like
      this one.
      
      Removed some more unused thread code.
      
      The 'D' special flag check (on devel versions) is now bypassed if
      getuid() == geteuid().
      
      !resubscribe and !unsubscribe can be forced once again.
      
      Fixed a buffer overrun in display_message().  It was only making sure
      there was room for the next character.  Long colour codes could overrun
      the end of the buffer.  Unused colour codes (ie with another colour
      code following but no printables in between) are now overwritten in the
      output buffer.
      
      Removed log.bb and who.bb.  They keep causing conflicts & there is no
      advantage in keeping copies in the repository (unlike folders).
      b0c0af52
  19. 08 Dec, 2000 1 commit
    • Finn Wilcox's avatar
      · 24a2d9b2
      Finn Wilcox authored
      Added the (D)eveloper special flag.  This is now required to run
      development versions of mw.
      
      Added the (Q)uiet special flag, which allows non-superusers to log in
      quietly.  This is intended for test users, so that they don't need su.
      
      Updated wizhelp/special with the new flags (and 'U' which was missing).
      24a2d9b2
  20. 06 Dec, 2000 2 commits
    • Chris McKenna's avatar
      · 7ca8ac09
      Chris McKenna authored
      added babel fish  and babelfish  to the babel gag (both translate to 'fish
      of confusion')
      
      Chris
      7ca8ac09
    • Chris McKenna's avatar
      · 000ad7bc
      Chris McKenna authored
      More babel items added
      000ad7bc
  21. 05 Dec, 2000 1 commit
    • Finn Wilcox's avatar
      · 7e77ce14
      Finn Wilcox authored
      Fixed 2 buffer overruns:
      1: strip_colours() was writing an extra null terminator.
      2: frl_line() was not leaving space for the null terminator when it
         resized the buffer.
      7e77ce14
  22. 04 Dec, 2000 2 commits
    • Chris McKenna's avatar
      · ccc1ba53
      Chris McKenna authored
      added more babel gag substitutions that I found.
      ccc1ba53
    • Finn Wilcox's avatar
      · 3cc2c3f5
      Finn Wilcox authored
      Added some restrictions on script filenames.
      
      Paths can no longer contain "..", and must refer to a regular file.
      (They also cannot have a leading '/', but this never had any effect).
      
      Files in another user's directory must now be loaded through symlinks.
      3cc2c3f5
  23. 03 Dec, 2000 1 commit
    • Finn Wilcox's avatar
      · 74cacb79
      Finn Wilcox authored
      The following commands can no longer be forced:
      
      !addfol, .alias, !autosub, .bind, !board, .destroy, .floodlimit,
      !folder, .load, !mesg, !mod, !passwd, !reply, !resubscribe, .runaway,
      !save, !su, !tidyup, .unalias, .unbind, !unsubscribe, !user, !write
      
      Some I wasn't sure about, so I've left alone for now:
      
      !catchup, !changeinfo, !emote, .event, !new, !quit, .restart, !tell,
      !wall, !wiz
      
      This is controlled by the priv flags in the command tables, 0x4000 for
      talker commands, 0x100 for board commands.
      74cacb79
  24. 02 Dec, 2000 1 commit
    • Finn Wilcox's avatar
      · 022a699f
      Finn Wilcox authored
      Updated wizhelp/gags with the new gag types, and added the chatmode
      flags for each.
      022a699f
  25. 29 Nov, 2000 2 commits