1. 28 Mar, 2000 4 commits
    • Unknown User's avatar
    • Finn Wilcox's avatar
      · f7a21f7b
      Finn Wilcox authored
      Fixed another memory leak in the VAR_DESTROY macro (used by 'unset').
      f7a21f7b
    • Chris Fry's avatar
      · feaae00e
      Chris Fry authored
      More bug-fixes (mem leaks etc..) - added the 'strcatc' routine in strings.c
      with appends a char onto a string - beware - its *extemely* manky, but its
      only used once atm, and couldn't be bothered to fix it :)
      
      Fry
      feaae00e
    • Chris Fry's avatar
      · 32f3e119
      Chris Fry authored
      Removed username tab-completion for now - may put a special flag in to
      toggle it, and put in a user command. It really buggers up pasting code with
      tabs in :/
      
      More Tnargian etc..
      
      Fry
      32f3e119
  2. 24 Mar, 2000 4 commits
    • Chris Fry's avatar
      · e00b0c19
      Chris Fry authored
      So that Zod's are actually logged now any loginfo broadcasts made, using
      'raw' mode are now logged as 'MsgBcast's in the log.
      
      For example:
      
      	broadcast(1, "\03301%s has just entered the board.",user->name);
      
      	will not log, but
      
      	broadcast(0x101, "\03314You hear a boing in the distance");
      
      	will be logged...
      
      Fry
      e00b0c19
    • Chris Fry's avatar
      · 88d7e357
      Chris Fry authored
      Changed the 'changeinfo' stuff around. now only prints added/removed flags
      to screen.
      
      Use by calling new routine:
      
      show_change(oldstring, newstring, formatstring, ...);
      
      Fry
      88d7e357
    • Chris Fry's avatar
      · c94e0436
      Chris Fry authored
      Woohoo! more generic Tnargian!
      
      Fry
      c94e0436
    • Chris Fry's avatar
      · 54c2690e
      Chris Fry authored
      Updated all the 'user edit' stuff to show the old status of flags where
      needed. Also removed the 'clear ignorelist' chatmode, as this was silly, and
      have now stuck it in as a user flag (!user clearignore <user>).
      
      More stuff in the tnarg filter - I have added the FIRST GENERIC RULE!! wow!
      Tnarg being consistent! :)
      
      Fry
      54c2690e
  3. 22 Mar, 2000 5 commits
    • Chris Fry's avatar
      · 7c084c3e
      Chris Fry authored
      Hmm.. actually added it :)
      
      Fry
      7c084c3e
    • Chris Fry's avatar
      · b1c2fb58
      Chris Fry authored
      Updated Debates room with final decisions - even though no-one will look at
      it :)
      
      Fry
      b1c2fb58
    • Chris Fry's avatar
      · 825b5312
      Chris Fry authored
      Changed 'summon' to work in all rooms in mudmode - not many ppl have summon
      anyway.
      
      Fry
      825b5312
    • Chris Fry's avatar
      · b39c9721
      Chris Fry authored
      Updated gag filters...
      
      Fry
      b39c9721
    • Chris Fry's avatar
      · 58641bdf
      Chris Fry authored
      Bah. Fixed the bug in the helpfile
      
      Fry
      58641bdf
  4. 20 Mar, 2000 6 commits
    • Chris Fry's avatar
      · 7f5d4a41
      Chris Fry authored
      God fed up of tab-complete usernames being all in lowercase, so put it back
      into normal case. This probably broke something, but it looks nicer...
      
      Fry
      7f5d4a41
    • Chris Fry's avatar
      · 5be1f697
      Chris Fry authored
      A few slight changes to the gag stuff, and _fixed_ the username
      tab-completion now - did an snprintf wrong...
      
      talk mode tab-completion now tab-completes *all* users, rather than just
      those logged on... (be very wary of just hitting '<tab><tab>y' :)
      
      Fry
      5be1f697
    • Steve Hill's avatar
      · bc986a20
      Steve Hill authored
      Oops - I got a couple of the rules the wrong way around...
      And why does CVS claim I've changed alias.h??
      
       - Steve
      bc986a20
    • Steve Hill's avatar
      · 634d053e
      Steve Hill authored
      new scripting function - UNIXTIME <variable> - sticks the current unixtime
      in the variable.
      
      removed crap buffy gag and replaced it with a cool Furby gag :)
      
       - Steve
      634d053e
    • Chris Fry's avatar
      · 0578fbea
      Chris Fry authored
      Fixed the secondary argument tab-completion permissions, eg, if you dont
      have su, before:
      
        !user <tab><tab>
      
      worked... however, now it wont! so tnarg can stop complaining :)
      
      Also, username tab-completion has now been implemented, so FireFury, *you*
      can now stop complaining...
      
      Fry
      0578fbea
    • Chris Fry's avatar
      · 0581bd05
      Chris Fry authored
      Fixed all the snprintf bugs, so mw should now work properly on the new
      kernel...
      
      Fry
      0581bd05
  5. 17 Mar, 2000 2 commits
    • Chris Fry's avatar
      · dfb8c772
      Chris Fry authored
      Better Buffy Detection....
      
      Fry
      dfb8c772
    • Chris Fry's avatar
      · be3a19ec
      Chris Fry authored
      More tnargian...
      
      Fry
      be3a19ec
  6. 15 Mar, 2000 4 commits
    • Finn Wilcox's avatar
      · 7b7c012a
      Finn Wilcox authored
      Fixed a memory leak in the VAR_DESTROY macro (used for 'unset'
      instruction).
      7b7c012a
    • Chris Fry's avatar
      · 8f5ca911
      Chris Fry authored
      Ermm... here's the correct fixed version :)
      
      Fry
      8f5ca911
    • Chris Fry's avatar
      · 28e9cf75
      Chris Fry authored
      Now fixed the conflicts between versions :)
      
      Fry
      28e9cf75
    • Finn Wilcox's avatar
      · fb0eb1ea
      Finn Wilcox authored
      Moved script instructions into new file, script_inst.c, which is used for
      both the threaded and non-threaded versions.  Added local variables to
      the threaded version.
      
      Prefixed the thread instructions with 'thread' e.g. to create a thread
      the code is now: "thread create <var> func arg..."
      
      Added new modules for the command table, and moved the definition of
      'chattable' into script_inst.c
      fb0eb1ea
  7. 14 Mar, 2000 1 commit
    • Chris Fry's avatar
      · 086fef75
      Chris Fry authored
      Sorry about the extra chnages finnw. You shouldn't need to make many
      changes. About the only thing I did that will effect you was to remove
      'list_bind' from script.c and tscript.c - the changes I thought I'd
      committed earlier.
      
      The rest of the changes are some changes in the way alias' and binds
      work again, though _should_ be fairly transparent changes.
      
      Fry
      086fef75
  8. 13 Mar, 2000 4 commits
    • Chris Fry's avatar
      · e22dd554
      Chris Fry authored
      Complete alias and bind rewrite....
      
      New commands '.alias', and '.unalias' create and remove aliases for current
      session (got knows why, but to test I made them, and left them in)
      
      If you have the script priv, commands '.bind', and '.unbind' are also
      available, to do the same thing with binds as to aliases.
      
      If you '.load .mwrc' or whatever, and an alias is reloaded, rather than
      making another alias, will redefine like binds now.
      
      Moved most alias/bind stuff out to alias.c file to make it easier - and make
      seperate functions, for adding and removing, to drastically reduce reused
      code.
      
      Fry
      e22dd554
    • Chris Fry's avatar
      · cdda60dd
      Chris Fry authored
      Fixed the random bug in scr_rand too ...
      
      Fry
      cdda60dd
    • Chris Fry's avatar
      · 442c2689
      Chris Fry authored
      Fixed the random number generator - to actually generate random numbers!
      
      More on the warez filter - its about finished now! :)
      
      Fry
      442c2689
    • Chris Fry's avatar
      · 01c23bd8
      Chris Fry authored
      Changed the gag structure, to remove an obsolete entry (ie, could be fixed
      elsewhere) - no easier to add gags
      
      Fry
      01c23bd8
  9. 10 Mar, 2000 6 commits
    • Finn Wilcox's avatar
      · 61fccc6c
      Finn Wilcox authored
      Fixed a memory leak with local variables (names were never freed)
      61fccc6c
    • Finn Wilcox's avatar
      · 5d8bffbb
      Finn Wilcox authored
      Added 2 new variable-handling macros in script.h:
          VAR_SEARCH_2(op, local_list, global_list, name)
      	searches the current local variable list for a variable, and if
      	that fails, search the global variable list.  Any variables
      	created using `op' will be added to the global list.
          VAR_STR_PREPARE_2(op, local_list, global_list, name, default)
      	search both local and global lists, like VAR_SEARCH_2, but ensure
      	that a variable exists, creating one with the default value if
      	necessary.  This variable can then be set with VAR_STR_UPDATE.
      
      Added 'local' instruction, which takes one or more local variable names,
      and creates local variables.  These variables are destroyed when the
      current function returns.  The only new function is scr_local, although
      various others have been modified to use the new macros.  These macros
      should be used for new script commands, so that local variables are
      searched when required.
      
      Fixed a dangling-pointer bug in scr_strcat() - strings created by strcat
      (ie when the variable did not exist) were immediately freed.
      
      Fixed various script debug messages which showed the wrong function names
      
      Fixed a bug in alarm.c which sometimes caused the alarm signal handler to
      revert to the default after handling a signal whose event had been
      cancelled.
      
      Modified the 'warez' messages slightly
      5d8bffbb
    • Chris Fry's avatar
      · 1554826e
      Chris Fry authored
      A much more modified 'warez' filter :)
      
      Fry
      1554826e
    • Chris Fry's avatar
      · d4e5b194
      Chris Fry authored
      A really horrible warez kiddie gag :)
      
      Fry
      d4e5b194
    • Finn Wilcox's avatar
      · f93ce13b
      Finn Wilcox authored
      Added event instruction 'body' which strips prefixes added by timestamp,
      spy and global, from the message.
      f93ce13b
    • Chris Fry's avatar
      · 79a5426c
      Chris Fry authored
      I'm sure I've done _something_ to it - but its listing all the files again,
      rather than just modified ones :(
      
      Anyway, its probably only more tnargian...
      
      Fry
      79a5426c
  10. 09 Mar, 2000 2 commits
    • Chris Fry's avatar
      · 61e3fbbb
      Chris Fry authored
      $^'s now have an optional argument that specifies the start argument.
      
      For example:
      
      $^	- $2..$n
      $^2	- $2..$n
      $^10	- $10..$n
      $^-3	- }
      $^Fish	-  } all invalid, as returned integer less than 2, so gives: $2..$n
      $^0	- }
      
      Fry
      61e3fbbb
    • Chris Fry's avatar
      · 9196c090
      Chris Fry authored
      Added colours to strfry - couldn't be bothered to store the colour for every
      character, then write my own strfry function - this _could_ make the string
      hidously long if someone (say firefury :) ran their 'colourful letters'
      script...
      
      ... so I just stuck the original colours back where they were, and left it
      at that - looks manky, but hey - at least you know colours are working! :)
      
      Fry
      9196c090
  11. 08 Mar, 2000 2 commits
    • Chris Fry's avatar
      · 02fc65c2
      Chris Fry authored
      Woohoo!! 'swab' now has a colours in it.
      
      I had to strip out the colours, then merge the new string with the old one.
      manky huh :/ only works with string of the same length though (minus the
      colour chars).
      
      Eg, only suitable for swapping chars around - cant remove/add any :(
      
      May write a better one later...
      
      Just colours in strfry to go now - that'll be annoying :(
      
      Fry
      02fc65c2
    • Chris Fry's avatar
      · dae76063
      Chris Fry authored
      Right. For now tye strfry and swab gags have just had colours disabled. If
      anyone can find an easy (or maybe not so easy) way of keeping the colours in
      them, then please do it, or tell me :)
      
      Fry
      dae76063