- 31 Oct, 2013 2 commits
-
-
Andrew Price authored
-
Andrew Price authored
- Move as much of mw into src/client/ as possible - Make sure everything that mwserv and webclient require is in src/ - Build a libmw.a from src/*.o to make linking easier - Rejig and simplify some Makefile rules This should help to make it clear which bits of code are shared and which are specific to the UI. We should avoid putting any user interface stuff into libmw.a as a rule. TODO: - Improve some file names (e.g. sqlite.{c,h} is a silly name) - Fix building the utils - Add sensible svn:ignores to src/client
-
- 19 Nov, 2012 1 commit
-
-
Andrew Price authored
-
- 18 Nov, 2012 2 commits
-
-
Andrew Price authored
Remove a bunch of unnecessary includes and remove --std=c99 from server/Makefile and webclient/Makefile since --std=gnu99 is already there.
-
Andrew Price authored
Adds -Wwrite-strings and adds (a lot of) const correctness fixes. This caught some crazy things along the way such as unnecessary strdup()s and passing a char * to sqlite_free(). Some files only contained one definition called from one other file so they were merged and deleted.
-
- 23 Jul, 2010 1 commit
-
-
Andrew Price authored
- Move struct folder into folders.h - Move struct who into who.h - Move TRUE and FALSE defines into bool.h (suggestion: <stdbool.h> could obsolete this) - Move the i18n stuff into intl.h - Move SAFE_FREE into util.h and add TR's auto cleanup buffer type stuff too - Rejig #includes where necessary
-
- 20 Jul, 2010 1 commit
-
-
Andrew Price authored
-
- 12 Jul, 2010 1 commit
-
-
Andrew Price authored
- Get rid of proto.h and split out its declarations into new .h files matching the .c files in which the definitions will be found - Use include guards in headers - Reorganise a couple of functions to make them static NB this is just the first step. Some of the additional headers can probably be obsoleted with further refactoring as they only contain one or two declarations - there's plenty of scope for better organisation of .c files (e.g. get_pass and other utility functions could be combined into a util.c).
-
- 23 Mar, 2007 1 commit
-
-
Steve Hill authored
-
- 12 Dec, 2000 1 commit
-
-
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.
-
- 28 Jun, 2000 1 commit
-
-
Chris Fry authored
Should now have ability to have a function to detect when users log off/on. In .mwrc or included files, use: checkonoff <function> and when a user logs on/off this function will be called. USER will be set to username, and $1 will be '1', or '0' for on/off. this is called when a user logs on/off talker, not the board, as this is what effects scripts. Other simple fixes too. scrhelp bug fixed where it didnt detect screen ehight properly etc.. Fry
-
- 31 May, 2000 1 commit
-
-
Chris Fry authored
RPC calls now work. Usage: SENDRPC <user> <type> <message> Any user may specify a function to call on a certain message type. these have to be 'bound'. In scripts put: rpc <type> <function> ------------- Example: [~/.mwrc] rpc INIT rpc_init [~/ipc.mws] SENDRPC Fry INIT "Test" etc... Any type not bound will not be called. Fry
-
- 30 May, 2000 1 commit
-
-
Steve Hill authored
New message type FORCE_IPC, which can be sent uding the SENDIPC script command. When a client receives FORCE_IPC it calls the ipc script function if it exists. i.e. to send "fish" to a user: SENDIPC user fish that user will then have a function called 'ipc', whcih will be executed the same as any other event - the text (in this case, 'fish') will appear as $1 and the USER command will return the name of the sender.
-
- 12 May, 2000 1 commit
-
-
Finn Wilcox authored
checks there. Added 'auto-ignore' function, intended for test users. The new special flag '+D' will cause a message (FORCE_TESTING) to be broadcast whenever you log on, to all other logged-on users, making them ignore you automatically. Also when a user joins the talker for the first time after logging on, they will check the 'who' list for anyone with the flag set, and ignore them. Test users do ignore each other (but not themselves). You can unignore a test user at any time, but you will automatically ignore them again if they log off and on. I don't recommend setting this flag for test users who log on/off frequently for the moment, since anyone running an earlier version will get 'unknown message type #20'. A possible temporary workaround might be to broadcast these messages only to people with the 'D' or 'A' chatprivs, as they are more likely to be running the current cvs version. Or to disable broadcasting (the checking when you join the talker will still work).
-
- 24 Mar, 2000 1 commit
-
-
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
-
- 29 Feb, 2000 1 commit
-
-
Chris Fry authored
I've changed the way gag works to use mutually exclusive bits, and set the chatmodes 5-8, and g to UNUSED1-5. Atm, there are up to 16 gags using the bits 1-4. NOTE: While this works perfectly, be *very* warned against using it, as this will destroy any gag setting you may wish to set/get. I recommend backing up first, if you plan to CVS this. Either that, or update mw with this new version Fry
-
- 25 May, 1999 1 commit
-
-
Chris Fry authored
Added FORCE_WIZ, so that wiz, wall, and tells can't be ignored Fry
-
- 03 May, 1999 1 commit
-
-
Justin Mitchell authored
-