1. 12 Dec, 2000 2 commits
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. 29 Nov, 2000 2 commits
  10. 27 Nov, 2000 2 commits
    • Finn Wilcox's avatar
      · bc24d0f6
      Finn Wilcox authored
      Changed display_message() so that colour codes are cancelled before
      line wraps (return and indent), and restored on the next line.  This
      prevents 'leaking' of the background colour onto the next line, on
      certain terminals.
      bc24d0f6
    • Finn Wilcox's avatar
      · 4f9c7d1e
      Finn Wilcox authored
      Fixed display of 'wiz' flag in who lists, which I broke when I
      removed the daemon flag.
      
      Added a few more babelfish entries.
      4f9c7d1e
  11. 25 Nov, 2000 2 commits
    • Finn Wilcox's avatar
      · 6c3fa777
      Finn Wilcox authored
      Removed an entry from the warez table that was causing infinite loops
      in apply_bork().
      
      1.15         (fry      10-Mar-00): //{ "", "" },
      1.40         (fry      03-Nov-00): { "", "" },
      1.15         (fry      10-Mar-00): { NULL, NULL} };
      
      Looks like the 2nd line was uncommented by accident recently.
      
      Note: this means giving anyone the warez gag in the release version will
      crash their mw session as soon as they say anything.  Maybe we'd better
      release another version?
      
      Also added some more entries to the babelfish table.
      6c3fa777
    • Finn Wilcox's avatar
      · edc0a4d4
      Finn Wilcox authored
      Added a few more entries to the tnarg filter.
      
      Added the "babelfish" gag.
      edc0a4d4
  12. 22 Nov, 2000 1 commit
    • Finn Wilcox's avatar
      · e8868276
      Finn Wilcox authored
      Removed the redundant 'daemon' flag.
      
      Fixed a .notsayto loophole, where the person could hear the message if
      they had global and were in a different room.
      e8868276
  13. 15 Nov, 2000 1 commit
  14. 04 Nov, 2000 1 commit
    • Chris Fry's avatar
      · 8178c206
      Chris Fry authored
      More 'french' gag stuff.
      
      Finalised 'mud command' stuff.
      
      Fixed some minor 'room' code.
      
      *READY FOR RELEASE*
      
      This will be my last edit for a while, and have got it ready and stable for
      a release... - I start work now, with no time to spare (no internet at home
      - b&b)
      
      Fry
      8178c206
  15. 03 Nov, 2000 1 commit
    • Chris Fry's avatar
      · ec5c4736
      Chris Fry authored
      Q-IGNORE, and Q-UNIGNORE now do not give out messages indicating when they
      have ignored/unignored etc.., but instead set comparison counters. Means you
      can now truly use them quietly, and write your own message in whatever
      format you wish.
      
      Added 'allo allo' gag - only _very_ few bork filters in there yet, but will
      add more soon.
      
      Fry
      ec5c4736
  16. 02 Nov, 2000 3 commits
    • Chris Fry's avatar
      · beae72e3
      Chris Fry authored
      'initfunc' now working
      
      From now on, 'autoexec' will not be executed automatically unless it is
      defined:
      
      initfunc autoexec
      
      instead of the normal
      
      function autoexec
      
      you can have as many 'inifunc' functions as you wish.
      
      once it is changed, autoexec will work perfectly as normal.
      
      fry
      beae72e3
    • Chris Fry's avatar
      · d5243795
      Chris Fry authored
      Removed 'look' and 'users' from talker commands - now purely mud.
      
      Fry
      d5243795
    • Chris Fry's avatar
      · d0b47045
      Chris Fry authored
      Added more 'mud' commands - gradually converting them from 'talk' commands.
      Things like 'look' and 'users' are now mud commands.
      
      Fixed a segmentation fault on mud commands when trying to tab complete part
      of a word that doesnt exist, eg '[fis<tab>' - there is nothing beginning
      with 'f' so segv's - small spelling error :/
      
      Oh, mud commands now back to '[', as ';', '@', '\', plus other characters
      dont seem to be recognised by readline as a letter. Normally, if you do
      ',<tab>', 'start' is set to 0 in the complete_entry function. However, if
      you use '@<tab>', start is set to '1' - the number of characters. (ie,
      '@@<tab>' gives '2').
      
      Is there any way to fix this?
      
      Fry
      d0b47045
  17. 31 Oct, 2000 2 commits
    • Chris Fry's avatar
      · 21d75e0f
      Chris Fry authored
      USERROOM <var for result> <USERNAME>
      
      if in mud-mode and cant find room, etc.. returns -1 instead of room.
      Acts the same as the wholist room numbers do.
      
      Fry
      21d75e0f
    • Chris Fry's avatar
      · 236951cb
      Chris Fry authored
      Fixed bug in 'ChangeRoom' which duplicated 'Cannot find that room' error
      message
      
      Added 'ABS' mw-script command.
      Usage: 'ABS <var> <input>' - 'input' may be variables etc.. and must be
             numeric
      
      Added 'RANGE' mw-script command.
      Usage: 'RANGE <input> <low> <high>' - is 'input' within (inclusive) the
             range 'low..high'. Must all be numeric. Sets comparison counter
             if matched.
      
      Examples:
      	SET test -4
      	ABS out $test
      	PRINT $out
      	--------
      	4
      
      
      	INPUT test "Enter number: "
      	IFCLEAR
      	RANGE $test 1 10
      	IFALL yes
      	PRINT "NO"
      	RETURN
      	yes:
      	PRINT "YES"
      	RETURN
      	--------
      	Enter number: 4
      	YES
      	Enter number: 38
      	NO
      
      
      Fry
      236951cb
  18. 29 Oct, 2000 2 commits
    • Chris Fry's avatar
      · b2167ff4
      Chris Fry authored
      Fixed a bug in the help message '. Use !help for a list of commands'. Now
      changes '!' for whatever it _should_ be. Cunning bug that always seems to
      have been there, but just noticed it...
      
      Oh, and i've noticed the revision number is getting rediculously high again
      (something like 52 now :). I think once i've finished this set of bugs/fixes
      (about 4 to go now), we should have another release. Theres _alot_ of new
      code which alot of people will find useful - such as the username
      tab-completion which has been requested alot by users who use mw alot
      
      Fry
      b2167ff4
    • Chris Fry's avatar
      · 1720974b
      Chris Fry authored
      MUD commands changed from ':' to '@'...
      
      Slight oversight.. I now find it *very* irritating doing smileys :)
      
      Command ')' not found. Use !help for a list of commands.
      
      Arse.. gotta change the '!help' bit too.. <sigh> so much that goes wrong..
      
      I'm pooped. I've been working a long 6 days with a games company.. i'm going
      now..
      
      Fry
      1720974b
  19. 23 Oct, 2000 1 commit
    • Chris Fry's avatar
      · 70e75854
      Chris Fry authored
      - More MUD directions
      - Some slightly better MUD command code
      - MUD Command character now ':' - more accessible. I tried '>', and ';', but
        these both cause mw to segfault. Any reason? eg, invalid char?
      
      Fry
      70e75854
  20. 22 Oct, 2000 1 commit
    • Chris Fry's avatar
      · 53d4bb16
      Chris Fry authored
      Okay, mud commands now work - at least for noraml compass directions. Havent
      addd others yet, but will now be extremely easy to do so.
      
      Username tab-completion flag now added too. use '.tcunames on|off' (or .t)
      with it on, you can tab-complete in normal talker text the username of
      anyone currently on talker. turn it off for pasting tabs etc.. onto talker
      
      Off as default.
      
      Fry
      53d4bb16
  21. 21 Oct, 2000 1 commit
    • Chris Fry's avatar
      · 375006b7
      Chris Fry authored
      New room code. All room change code now put into the one function in
      'rooms.c' - ChangeRoom.
      
      Takes a string argument (the new room), and an int (the 'quiet' flag).
      
      Slightly more efficient, and less userdb access.
      
      Fry
      375006b7
  22. 19 Oct, 2000 1 commit
    • Chris Fry's avatar
      · 5f308ba8
      Chris Fry authored
      Fixed 'checkonoff'. Seems to work all the time now (no 'system') users -
      moved all the broadcast to start of logoff functions so to give it time
      before removing from the who-list
      
      Added a 'timeout' style message for people when their connection drops.
      
      Checkonoff now broadcasts when the user logs off the talker in the following
      cases:
      
      normal, zod, mrod, timeout, connection lost, banned
      
      each one gives off a different code:
      
      Logon = 1
      Logoff normally = 0
      Connectino Lost = -1
      Timeout = -2
      Banned = -3
      Zod = -4
      MRoD = -5
      
      Logoff messages are negative (and 0), logon messages are positive, incase
      you wish to add other cases in the future.
      
      Everyone has the ability to check whether a user has logged on/off using the
      'checkonoff' bind in scripts. However, only those with SU can tell the exact
      method of logging off/on. Those without SU will just get 0/1.
      
      Fry
      5f308ba8
  23. 15 Oct, 2000 1 commit
    • Chris Fry's avatar
      · 4f6ab648
      Chris Fry authored
      Fixed some stuff in the 'annoy' gag - better filters
      
      IPC's, RPC's, and CHECKONOFF's now added to event stack, so wont spam screen
      when writing messages
      
      Fry
      4f6ab648
  24. 13 Oct, 2000 2 commits
    • Chris Fry's avatar
      · 3f1a78e4
      Chris Fry authored
      script instruction 'set' now takes args like 'print' does - any number of
      them appended rather than one.
      
      Fry
      3f1a78e4
    • Chris Fry's avatar
      · 185d5bfa
      Chris Fry authored
      script function tab completion now works perfectly.
      added script function tab completion to 'bind' talker command
      
      Fry
      185d5bfa
  25. 12 Oct, 2000 1 commit
    • Steve Hill's avatar
      · 109214a0
      Steve Hill authored
      A minor change to the censor gag to piss Gareth off...
      109214a0
  26. 11 Oct, 2000 1 commit
    • Chris Fry's avatar
      · 44dc2691
      Chris Fry authored
      Okay. ROOM is now silent again if you have SU
      
      Fry
      44dc2691
  27. 09 Oct, 2000 3 commits
    • Chris Fry's avatar
      · 02827cc4
      Chris Fry authored
      Arse.. apparently missed this file out according to finnw. Here is it..
      
      Chris
      02827cc4
    • Chris Fry's avatar
      · 5a91f0ad
      Chris Fry authored
      Changed the script 'room' command to always be loud again.
      Q-ROOM is available for those with Developer mode (D chatpriv) if you need
      to move around quietly, while developing rooms/scripts whatever. However,
      dont give this priv to anyone - it enables the other devel commands too,
      which will spam your screen with crud etc... :)
      
      Fry
      5a91f0ad
    • Chris Fry's avatar
      · 8febdd52
      Chris Fry authored
      Added mudmode commands. in mudmode, use /command.
      
      so far, the tab-complete/command structure is all there, but only:
      /east, /west, /north, and /south are present atm, and all they do is print
      the command name.
      
      Will add the other directions, plus things like /look etc.. in a while, and
      actually make them *do* something (needs a large rewrite of the room change
      code, otherwise i'm repeating it two-three times!)
      
      Chris
      8febdd52