- Jan 25, 2000
- Jan 24, 2000
-
-
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
-
Chris Fry authored
Put 'exec' and 'boardexec' in same function. A *lot* less code needed Fry
-
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
-
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
-
Chris Fry authored
Added the 'fjump' help files, and fixed errors in others Fry
-
Chris Fry authored
Updated script helps Fry
-
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
-
- Jan 21, 2000
- Jan 17, 2000
-
-
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
-
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
-
- Jan 14, 2000
-
-
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.
-
- Jan 06, 2000
-
-
Chris Fry authored
Fixed the 'wholist' bug manic pointed out Fry
-
- Dec 14, 1999
-
-
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.
-
- Dec 12, 1999
-
-
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.
-
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)
-
- Dec 11, 1999
-
-
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.
-
- Dec 09, 1999
-
-
Chris Fry authored
Only SU's can now detect mrods, normal users wont have 'shutdown' executed. Fry
-
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
-
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.
-
- Dec 08, 1999
-
-
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.
-
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.
-
- Dec 07, 1999
-
-
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.
-
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
-
- Nov 30, 1999
-
-
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
-
- Nov 29, 1999
-
-
Chris Fry authored
Fixed the chatmode bugs that stopped you viewing flags above 0xffff Eg, all the new ones :) Fry
-
Chris Fry authored
Pedantic.. but I've changed the version number :) Fry
-
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
-
Chris Fry authored
Ok.. can now do combinations of '-autochat', '-w', and '-quiet'. Just dont tell FireFury :) Fry
-
Chris Fry authored
Ok.. room changes now give correct messages too to mud and non-mud users Fry
-
Chris Fry authored
Ok.. mudmode will now get the correct 'logon' message. eg, 'entered Main Hall' or 'entered room 0' Fry
-
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
-
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
-
Chris Fry authored
Fixed the ooh, so tiny bug in 'mrod' Fry
-
Chris Fry authored
Changes to 'scripthelp' files Fry
-
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
-
- Nov 25, 1999
-
-
Chris Fry authored
Oops.. summon now fixed for non-mudmode, so ppl can enter locked rooms Fry
-