Skip to content
Snippets Groups Projects
  1. Jan 25, 2000
    • Chris Fry's avatar
      · ca73051d
      Chris Fry authored
      More helpfiles...
      
      Fry
      ca73051d
    • Chris Fry's avatar
      · 0024aba0
      Chris Fry authored
      Added Tnargs colour scheme
      
      Fry
      
      PS: probably more unadded stuff to follow :/
      0024aba0
    • Chris Fry's avatar
      · cbf37f08
      Chris Fry authored
      Added the MUD rooms, didn't seem to be in there before
      
      Fry
      cbf37f08
  2. Jan 24, 2000
    • Chris Fry's avatar
      · b4aad7b8
      Chris Fry authored
      Cool. OK, can now select whether you want text output after a script event.
      
      use 'OUTPUT <yes|no>' - where the argument conforms to arthurs BoolOpt
      function. eg, Y,N,YES,N,ON,OFF, but cunningly no 0/1 :)
      
      Only works in an event, ignored otherwise.
      
      Great for use in decryption for example - you only get the decrypted
      message, and not the garbage that gets displayed.
      
      Fry
      b4aad7b8
    • Chris Fry's avatar
      · 586c563d
      Chris Fry authored
      Put 'exec' and 'boardexec' in same function. A *lot* less code needed
      
      Fry
      586c563d
    • Chris Fry's avatar
      · fee71c25
      Chris Fry authored
      Added some bug-fixes..
      
      Some 'inreadline' fixes, according to finnw, thought I dont see any use for
      it where I put it :)
      
      Fry
      fee71c25
    • Chris Fry's avatar
      · 4f038ddf
      Chris Fry authored
      Hmm.. actually fixed the priviledges for scripts.
      
      Eg, BOARDEXEC doesn't actually run EVERY SU COMMAND evern with SU as it did
      before ... luckily not released ... Ooops :)
      
      EG: !user status fry ... -s
          !user special fry ... -S
          ,boardexec user status fry
      
          Current status set to [rmp]
          New status [+-=][rmsbnipD]:
      
          +s
      
      Fixed now though :))
      
      Fry
      4f038ddf
    • Chris Fry's avatar
      · c3890f25
      Chris Fry authored
      Added the 'fjump' help files, and fixed errors in others
      
      Fry
      c3890f25
    • Chris Fry's avatar
      · 2e0773e1
      Chris Fry authored
      Updated script helps
      
      Fry
      2e0773e1
    • Chris Fry's avatar
      · adbb4355
      Chris Fry authored
      Added 'BOARDEXEC' to execute board commands like EXEC does talker commands.
      (NOTE: I probably did this one already :) - May add some permissions to
      this, or it might allow users to do screwy things...
      
      Added 'FJUMP' which is like JUMP but it doesn't tkae any arguments. Instead,
      it passes in arguments $2, $3 .. $n from the current function call.
      
      For example:
      
      function test_fjump
          IFCLEAR
          EQ $* ""
          IFALL end
          PRINT "< $* >"
          FJUMP test_ds
        end:
          RETURN
      endfunc
      
      Given in the call ',test_fjump 1 2 3 4' will give the output:
      
      < 1 2 3 4 >
      < 2 3 4 >
      < 3 4 >
      < 4 >
      
      Each of these arguments can be accessed seperately using '$1' etc..
      
      Eg, using PRINT "< $1 >" instead in the function gives:
      
      < 1 >
      < 2 >
      < 3 >
      < 4 >
      
      ------------------------
      
      NOTE: Now I have to alter it to append given arguments on the end/front. Eg:
      
      FJUMP "Fish" gives:
      
      $2 .. $n "Fish"
      
      or
      
      "Fish" $2 .. $n
      
      ------------------------
      
      Fry
      adbb4355
  3. Jan 21, 2000
    • Chris Fry's avatar
      · 3fbda78d
      Chris Fry authored
      Actually added the 'wholist' script command now (see .scrhelp wholist)
      Returns a space delimited string of users current on the talker
      
      Fry
      3fbda78d
    • Chris Fry's avatar
      · 9877c65b
      Chris Fry authored
      Extra command help files
      
      Fry
      9877c65b
  4. Jan 17, 2000
    • Chris Fry's avatar
      · 6d774b84
      Chris Fry authored
      Fixed the force bug that locked up mw.
      
      Readline was interfering with keyboard input, so I just backed up the
      current line, disabled readline, ran the forced command, and then restored
      the line and readline afterwards.
      
      Now.. goodnight.. I'm knackered :)
      
      Fry
      6d774b84
    • Chris Fry's avatar
      · f24d2e3f
      Chris Fry authored
      Fixed 'global' bug in soundproofed rooms.
      
      Added 'talkpriv' script command. (see '.scrhelp talkpriv' for details)
      
      Includes Finnw's 80% CPU bug fix
      
      Includes Finnw's new communication routines, including instand force
      
      Other bug fixes
      
      NOTE: Finnw' instant force is broken - locks up recipients mw process if you
            force them to accept input (eg, basically in !user). Eg:-
            '!force firefury !user view fry' will work - no input
            '!force firefury !user chatpriv firefury' freezes firefury's mw as the
              new communication routines clear the keyboard input before they can
              type anything.
      
      NOTE TO FINNW: please fix this soon!
      
      Fry
      f24d2e3f
  5. Jan 14, 2000
    • Finn Wilcox's avatar
      · 21d84281
      Finn Wilcox authored
      Moved most ipc message processing out of signal handlers, renaming
      incoming_mesg() to handle_mesg() and adding a new trivial incoming_mesg
      which sets a flag.
      Changed flags of incoming_pipe to allow polling with select().
      Fixed a bug which caused excessive CPU usage when polling tty/pipe.
      Added idle loops in get_str() and 'mesg edit' to check for incoming
      messages.
      21d84281
  6. Jan 06, 2000
    • Chris Fry's avatar
      · 4021be36
      Chris Fry authored
      Fixed the 'wholist' bug manic pointed out
      
      Fry
      4021be36
  7. Dec 14, 1999
    • Finn Wilcox's avatar
      · 81f52292
      Finn Wilcox authored
      Added tab-completion for script bindings: list_bind() in script.c
      Added regular check for !force in main loop when using readline (every
      0.5 sec).  The readline buffer is now saved during !force.
      Added code to set_prompt() in main.c to allow updating of the prompt
      during editing.
      Added calls from incoming_mesg() in main.c to set_prompt(), which update
      the prompt immediately after .zod, .summon and !user chatmode.
      81f52292
  8. Dec 12, 1999
    • Finn Wilcox's avatar
      · adbe9d7c
      Finn Wilcox authored
      New function restore_tty() in main.c, to avoid code duplication, at
      several points where the terminal state needs to be restored.  Readline
      is not so good at doing this in callback mode.
      adbe9d7c
    • Finn Wilcox's avatar
      · 8ca3ce63
      Finn Wilcox authored
      Moved some code out of main() into 3 new functions: accept_line(),
      set_prompt() and accept_command().  accept_line is a handler function for
      use by the 'callback' interface of readline, which is now used in the
      main loop.
      set_prompt() sets up the prompt depending on room, chatmode, etc.
      accept_command() executes a command, interpreted for the current mode
      (talker/non-talker).
      
      Added prototype for accept_command() to proto.h (the other 2 functions are
      private to main.c)
      8ca3ce63
  9. Dec 11, 1999
    • Finn Wilcox's avatar
      · 4f337a1d
      Finn Wilcox authored
      Added 'no-op' events to alarm scheduler - alarms can be cancelled by
      setting their 'how' function pointer = NULL.  Previously handlers had to
      test for cancellation.  reset_timeout() in main.c now uses this method.
      
      Added SA_RESTART flag to alarm handler (The scheduler is designed to
      catch unexpected signals, but not respond).  This may later be made an
      option for individual events.
      4f337a1d
  10. Dec 09, 1999
    • Chris Fry's avatar
      · 5aee78ea
      Chris Fry authored
      Only SU's can now detect mrods, normal users wont have 'shutdown' executed.
      
      Fry
      5aee78ea
    • Chris Fry's avatar
      · 6e6f8b84
      Chris Fry authored
      when shutdown routine is called, now returns user who kicked you off, if you
      are SU - just returns "" if you aren't.
      
      Also includes finnw's stuff...
      
      Fry
      6e6f8b84
    • Finn Wilcox's avatar
      · 00267d28
      Finn Wilcox authored
      Moved setting of 2nd time_out alarm (the one that actually logs you out)
      from time_out() (after 'wakey wakey') to reset_timeout().  This avoids
      calling alarm_at() from a handler, which may be unsafe.
      00267d28
  11. Dec 08, 1999
    • Finn Wilcox's avatar
      · a982dd12
      Finn Wilcox authored
      Added SIGINT handler interrupt() in main.c.  Scripts can now be interrupted
      	by typing ^C.
      Added loop to check for ^C interrupt in scr_sleep().
      Added check for user->timeout == 0 in reset_timeout().  Alarm scheduler
      	increases this to 1us, resulting in redundant (though harmless)
      	signals.
      a982dd12
    • Finn Wilcox's avatar
      · 81af1b7d
      Finn Wilcox authored
      Added 'uninterruptible' option to alarm_sleep() in alarm.c
      Added function reset_timeout() in main.c, to replace current use of alarm()
      Modified read_new() in new.c to use reset_timeout() instead of alarm()
      Modified add_msg() in add.c to use reset_timeout() instead of alarm()
      Modified c_timeout() in newmain.c so it also resets the timer
      Modified scr_sleep() in script.h to use alarm_sleep() instead of usleep()
      Added second empty string to terminator in chattable.h to prevent warning
      
      Side-effect: reset_timeout() sets idle_count = 0, so you now get the 'Wakey
      wakey' message again if you add/read messages after seeing it.
      81af1b7d
  12. Dec 07, 1999
    • Finn Wilcox's avatar
      · fbeb9e90
      Finn Wilcox authored
      Added alarm-scheduling functions in alarm.c - see prototypes in alarm.h
      Existing time-out and sleep functions have not yet been modified to use
      the scheduler.
      fbeb9e90
    • Chris Fry's avatar
      · e9439678
      Chris Fry authored
      God knows if I did this...
      
      There is now a 'shutdown' function like the autoexec function.
      
      Doesn't work on mrod :)
      
      Fry
      e9439678
  13. Nov 30, 1999
    • Chris Fry's avatar
      · 1b5e2453
      Chris Fry authored
      put RUNAWAY and FLOODLIMIT in script_inst.h rather than in the C file
      
      Some other bug fixes - cant remmeber what though
      
      Fry
      1b5e2453
  14. Nov 29, 1999
    • Chris Fry's avatar
      · 03234f4a
      Chris Fry authored
      Fixed the chatmode bugs that stopped you viewing flags above 0xffff
      
      Eg, all the new ones :)
      
      Fry
      03234f4a
    • Chris Fry's avatar
      · 754babd4
      Chris Fry authored
      Pedantic.. but I've changed the version number :)
      
      Fry
      754babd4
    • Chris Fry's avatar
      · 18db7520
      Chris Fry authored
      Made 'sticky' chatmode and talker command.
      
      Allows a user to specify whether they want to log back onto the room they
      logged off from. Unlike freeze, they can change rooms though - only affects
      logons.
      
      This is overridden by 'freeze'.
      
      Fry
      18db7520
    • Chris Fry's avatar
      · d2f7982c
      Chris Fry authored
      Ok.. can now do combinations of '-autochat', '-w', and '-quiet'.
      
      Just dont tell FireFury :)
      
      Fry
      d2f7982c
    • Chris Fry's avatar
      · 6e6e33d9
      Chris Fry authored
      Ok.. room changes now give correct messages too to mud and non-mud users
      
      Fry
      6e6e33d9
    • Chris Fry's avatar
      · 5e138104
      Chris Fry authored
      Ok.. mudmode will now get the correct 'logon' message.
      
      eg, 'entered Main Hall' or 'entered room 0'
      
      Fry
      5e138104
    • Chris Fry's avatar
      · 3aa5b62f
      Chris Fry authored
      Fixed the 'ignore' and 'ignorelist' bug so wont duplicate entries, EVEN IF
      THE USER DATABASE IS BUGGERED (not looking at anyone of course art :)
      
      ^- seems to have many duplicated entries for no apparent reason, so I just
      ignore them now... <sigh> :/
      
      No.. actually.. it makes the ignore list easier to understand now, although
      maybe a tad slower...
      
      Fry
      3aa5b62f
    • Chris Fry's avatar
      · dda765dc
      Chris Fry authored
      Fixed 'scrhelp' bug so it now runs properly
      
      Also added script 'rights' for commands like 'raw', so it doesn't exist if
      you dont have the 'raw' priv.
      
      Fry
      dda765dc
    • Chris Fry's avatar
      · 3212f3d2
      Chris Fry authored
      Fixed the ooh, so tiny bug in 'mrod'
      
      Fry
      3212f3d2
    • Chris Fry's avatar
      · 20c5f90e
      Chris Fry authored
      Changes to 'scripthelp' files
      
      Fry
      20c5f90e
    • Chris Fry's avatar
      · 7ebdfc7a
      Chris Fry authored
      RAND - now creates variable if it doesnt exist
      
      SPLIT <source> <head> <tail> - splits source string into first word and rest
      of string, and puts into two variables
      
      Fry
      7ebdfc7a
  15. Nov 25, 1999
    • Chris Fry's avatar
      · ff1c9f9d
      Chris Fry authored
      Oops.. summon now fixed for non-mudmode, so ppl can enter locked rooms
      
      Fry
      ff1c9f9d
Loading