Commit Graph

117 Commits

Author SHA1 Message Date
Gary Lafortune
0e2ca8c051 Fixes OOC colour in whitemode, and OOC pings (#5127) 2019-04-17 19:47:48 -05:00
Gary Lafortune
814f408501 Makes OOC pinging WAAAAAY smarter. (#5035)
* Makes the Ick-Ock Regex WAAAAAY smarter
2019-04-08 14:41:43 -05:00
yogstation13-bot
e00e489364 [MIRROR] [READY] Darkmode fixes (#4873)
* [READY] Darkmode fixes (#43252)
2019-04-08 04:22:50 -05:00
Gary Lafortune
4e9c8199b6 Makes @ing in OOC a bit fuzzier (#5034) 2019-04-02 23:57:56 -05:00
Gary Lafortune
3aed6b6692 Fixes //yogs comments, removes whitespace changes 2019-03-30 20:40:17 -05:00
Wil Fredrickson
64fdd7432e Update ooc.dm 2019-03-28 20:29:46 -07:00
Gary Lafortune
c1e532efe9 Update code/modules/client/verbs/ooc.dm
Co-Authored-By: wilfredrickson <wilfredrickson@gmail.com>
2019-03-28 19:38:36 -07:00
Wil Fredrickson
ea261af3f4 regex for catching accidental ic in ooc, changes in ooc.dm 2019-03-28 16:33:00 -07:00
Wil Fredrickson
03bec2954c epic 2019-03-28 15:07:07 -07:00
Wil Fredrickson
9c19d643dc ickock regex to grab accidental ic in ooc 2019-03-28 14:31:59 -07:00
Wil Fredrickson
5b4254aff7 ickock 2019-03-28 02:08:57 -07:00
Wil Fredrickson
8c2bf64703 ickock 2019-03-28 02:05:29 -07:00
Wil Fredrickson
e22d99ff9d regex ickock 2019-03-28 01:58:54 -07:00
Wil Fredrickson
913b13ba36 regex for ickock 2019-03-28 01:51:35 -07:00
Wil Fredrickson
ef8f6c20bc fixing accidental in character in out of character chat using regex 2019-03-28 01:23:38 -07:00
ShizCalev
b8de7dbb9f Merge pull request #43036 from BuffEngineering/sip-fix
Fixes non-shameful, nonlethal suicides
2019-03-08 12:37:37 +01:00
Ling
159ceb9819 Update ooc.dm 2019-03-02 18:17:24 +01:00
Ling
c8dd79cbfd Update ooc.dm 2019-03-02 18:16:15 +01:00
Gary Lafortune
6a56ba6072 Adds pinging people in OOC (#4465)
* Adds pinging in OOC, refactors how OOC is sent out

God this should run so much faster it gives me a case of the vapors just thinkin' about it

* Removes wrong comment, makes name detection fuzzier
2019-02-22 16:04:05 -05:00
Jordie
a28de54405 Ban system and interface update (#41176)
Spiritual successor and extension to #17798, an almost entire rebuild of the SQL ban system backend and interface.
Bantypes are removed per #8584 and #6174. All bans are now 'role bans', server bans are when a ban's role is server. Admin bans are a column, meaning it's possible to ban admins from jobs.
Bans now have only an expiry datetime, duration is calculated from this when queried.
unbanned column is removed as it's superfluous, checking unban status is now done through checking unban_datetime. unban_round_id column added. Each ip and computerid columns rearranged so ip is always first, like in other tables. Bans now permit a null ckey, ip and computerid.

Ban checking is split into two procs now is_banned_from() does a check if a ckey is banned from one or more roles and returns true or false. This effectively replaces jobban_isbanned() used in simple if() statements. If connected a client's ban cache is checked rather than querying the DB. This makes it possible for a client connected to two or more servers to ignore any bans made on one server until their ban cache is rebuilt on the others. Could be avoided with cross-server calls to update ban caches or just the removal of the ban cache but as is I've done neither since I think it's enough of an edge case to not be worth it.
The second proc is is_banned_from_with_details(), this queries the DB for a role ban on a player's ckey, ip or CID and returns the details. This replaces direct queries in IsBanned.dm and the preferences menu.

The legacy ban system is removed.

The interfaces for banning, unbanning and editing bans have been remade to require less clicking and easier simultaneous operations. The banning and jobban panel are combined. They also store player connection details when opened so a client disconnecting no longer stops a ban being placed.

New banning panel:
Key, IP and CID can all be toggled to allow excluding them from a ban.
Checking Use IP and CID from last connection lets you enter only a ckey and have the DB fill these fields in for you, if possible.
Temporary bans have a drop-menu which lets you select between seconds, minutes, hours, days, weeks, months and years so you don't need to calculate how many minutes a long ban would be. The ban is still converted into minutes on the DB however.
Checking any of the head roles will check both of the boxes for you.
The red role box indicates there is already a ban on that role for this ckey. You can apply additional role bans to stack them.

New unbanning panel:
Unbanning panel is now separate from the banning panel but otherwise functionally the same.

Ban editing panel:
Actually just a modified banning panel, all the features from it work the same here.
You can now edit almost all parameters of a ban instead of just the reason.
You can't edit severity as it's not really part of the ban.
The panels have been tested but I've not been able to get my local server to be accessible so ban functionality isn't properly confirmed. Plenty of testing will be required as I'd rather not break bans.

cl
admin: Ban interface rework. The banning and unbanning panels have received a new design which is easier to use and allows multiple role bans to be made at once.
prefix: Ban search and unbanning moved to unbanning panel, which is now a separate panel to the old banning panel.
/cl
2018-12-04 20:48:17 +01:00
k-k-karma
4463bf9072 Fix colorooc checking for R_ADMIN and byond (#41463)
* Update ooc.dm

* Update ooc.dm
2018-11-14 18:42:47 +01:00
ShizCalev
82d13f079c Admin prefs stuff (#41041)
fixes #41106 since it'll have it's own fucking location.

cl ShizCalev
add: Admins can now personalize their asay message color on servers with the feature enabled.
tweak: Moved some admin only preference verbs out of the Preferences tab and to a new admin preferences tab to help unclutter it / prevent accidental toggling of fun things.
/cl

Note that the start of the admin message will still use the default formatting just so it can be quickly recognized as an admin message and not an OOC one.
2018-10-24 23:42:46 +01:00
Ling
4feac11d96 Merge pull request #2906 from GuppyLaxx/mentorzzz
[WIP] Ports mentors
2018-10-22 21:18:51 +02:00
Jordan Brown
bf10594b52 Merge pull request #40997 from ShizCalev/suicide-roles
Adds a config option to automatically reopen job positions of folks who suicide at roundstart
2018-10-21 08:01:08 +01:00
Ling
2742c7d687 Fix config 2018-10-20 18:23:10 +02:00
ShizCalev
deeef5d59c Removes tactical suicide borging (#40754)
* Removes tactical suicide borging

* correction
2018-10-15 20:49:56 +01:00
guppylaxx
c1808fe770 MEEEERGE 2018-10-11 17:17:51 -04:00
kevinz000
1f7a76ade0 Combat/Stun (slip) overhaul staging, mobility flags, adds crawling (#39967)
Aiming to implement the framework oranges has detailed in https://tgstation13.org/phpBB/viewtopic.php?f=10&t=19102
Moves canmove to a bitflag in a new variable called mobility_flags, that will allow finer grain control of what someone can do codewise, for example, letting them move but not stand up, or stand up but not move.

Adds Immobilize()d status effect that freezes movement but does not prevent anything else.
Adds Paralyze()d which is oldstun "You can't do anything at all and knock down).
Stun() will now prevent any item/UI usage and movement (which is similar to before).
Knockdown() will now only knockdown without preventing item usage/movement.
People knocked down will be able to crawl at softcrit-speeds
Refactors some /mob variables and procs to /mob/living.
update_canmove() refactored to update_mobility() and will handle mobility_flags instead of the removed canmove

cl
rscadd: Crawling is now possible if you are down but not stunned. Obviously, you will be slower.
/cl
Refactors are done. I'd rather get this merged faster than try to fine tune stuff like slips. The most obvious gameplay effect this pr has will be crawling, and I believe I made tiny tweaks but I can't find it Anything I missed or weird behavior should be reported.
2018-10-10 23:21:27 +01:00
guppylaxx
644f28f27f i hate this so much 2018-10-07 07:59:26 -04:00
Jordan Brown
4face8a0d7 Merge pull request #39672 from zaracka/emote-and-suicide-restraint-checks
improves emote and suicide restraint checks
2018-08-18 17:03:19 +01:00
Ling
6a07079923 Fix merge conflicts 2018-08-14 16:46:47 +02:00
Patrick Chieppe
584ab92bc3 Logging system refactor and improvement (#39521)
* Refactor several log lines to use datum_info_line and atom_loc_line

* Add default return strings from datum_info_line and atom_loc_line

* Add parentheses around atom_loc_line data

* Change more logs to use atom_loc_line

* Add check in atom_loc_line for turfs to avoid calling get_turf on them

* Re-add removed 'at'

* Replace datum_info_line with key_name and atom_loc_line with loc_name

* Refactor logging functions

* Avoid double-logging self-interactions

* Fallback to simple stringification if all else fails in key_name()

* Rewrite muscle spasm logging to use log_message

* Standardize logging of martial arts

* Tweak individual logging panel look

* Fix individual logging panel source

* When I typed || I really meant &&

* Fix Telecomms logging always showing client logs in the panel

* Reverts addition of buggy ownership log to panel

* Remove colon

* Fix missing log_directed_talk tag

* Add warning for missing type in log_direted_talk

* Change warnings to stack_traces

* Add square brackets around fallthrough key_name() case to help parsing

* Allow atom arguments/src in log_*() functions

* Change log_combat call with null argument to log_message

* Change mecha types' log_message() arguments to match atom and mob version

* Add key_name() case for atoms

* Fix resist_grab() unsetting pulledby before log_combat gets a chance to use it

* Fix log_globally logic

* Add logging for hitting objects with items

* Move log_combat() to atoms.dm

* Use utility functions for object stringification in log_combat()

* Use utility functions for object stringification in log_combat()

* Add missing logs for interacting with display cases

* Rewrite log_combat() comment

* Add missing space in log_combat()

* Add logging for hitting grilles barehanded

* Add missing ..()
2018-08-12 20:40:46 +01:00
Nich
647d91b7f3 Update who.dm 2018-06-28 21:02:08 +02:00
Ling
a0e807707a irc -> discord 2018-06-28 20:50:52 +02:00
Ling
d92ee2ecc6 Fix merge conflicts 2018-06-26 22:00:16 +02:00
Tad Hardesty
8059c81631 Add DOM-based linkify to goonchat (no more URLs in IC) (#38693)
* Add DOM-based linkify to goonchat (no more URLs in IC)

* Add linkify spans to places where OOC messages appear

This includes:
- OOC
- Deadchat
- Admin chat
- Admin logs
- Admin PMs
- Prayers

* Limit fallback behavior to linkify spans
2018-06-26 03:45:25 +01:00
Jordan Brown
2d199f67ba Fix the MOTD having too many newlines 2018-06-25 15:19:22 +01:00
Jordan Brown
1f0b362b18 Qdels queries, adds sleep safety checks, DBcore checks for leaks (#38363)
* Qdels all queries, adds sleep handling

* DB Core messages admins about undeleted queries

* Compile fixes. Adds missing set waitfor

* Remove world/New shennanigans. Add DBQuery/BlockingExecute()

* Less spammy notifications to admins about undeleted queries

* Increase dbcore fire time to 1 minute

* Upgrade undeleted query warning

* Better place of death

* Fix build

* Remove BlockingExecute, see BSQL PR for why

* Yep, missed that one.

* Psyche, that's the WRONG QUERY!!
2018-06-18 20:49:09 +01:00
Tad Hardesty
10e0fa2560 Merge pull request #38287 from ninjanomnom/signal-define
Use a define to speed up sending signals to datums with no signals
2018-06-15 12:40:41 +01:00
Tad Hardesty
1850c72ed4 Add "Fit Viewport" verb to automatically size the map window (#38351)
* Add a verb to automatically size the map window

* Add a preference to auto-fit the viewport
2018-06-14 09:03:31 +01:00
ShizCalev
39c247d6a9 Standardizes and cleans up some admin messages & logging (#38128)
* Improved logging

* Fixes & emitter logging

* ded
2018-05-31 05:57:29 +01:00
Nich
2935fb55eb Update ooc.dm 2018-05-30 21:16:02 +02:00
Jordan Brown
0df047281b Adds OOC verb to show the last round end report you've viewed (#37900)
You can now view your last round end report window with the "Your last round" verb in the OOC tab

stores the HTML in a data dir
2018-05-21 22:48:20 +01:00
george99g
5ab3d9b22c Deactivate suicide prescans via ghost var (#36839)
* Create suicide_log proc in /mob/living

Suicide logging moved to there.

* Stop after-suicide prescan clones
2018-04-30 03:36:09 +01:00
Ling
fd6fef293b Adds donor tag to OOC 2018-04-29 15:27:34 +02:00
Nich
6c5f55699a adds webhooks 2018-04-25 22:34:26 +02:00
oranges
d01416179c Revert "Deactivate prescans on suicide" (#37121)
* Revert "Automatic changelog generation for PR #36741 [ci skip]"

This reverts commit e133bb1275a23b520fe396f4bc9341572dcee6d2.

* Revert "Deactivate prescans on suicide (#36741)"

This reverts commit 309e469f4e03c7d3ad663ae7f35e1cb0e2362322.
2018-04-11 15:44:37 +01:00
george99g
bd86e19106 Deactivate prescans on suicide (#36741)
This will just give all of your records a flag on suicide, preventing them from being used to create a clone.

Created suicide_act on /datum/mind to log animal suicides and handle the record deactivation without cluttering up the mob verbs.
2018-04-11 11:05:31 +01:00
Jordan Brown
2dd2345b64 Merge pull request #36780 from KorPhaeron/oocban
Fixes OOC ban not applying to admins
2018-03-30 17:19:50 +01:00
Nich
e18293eea1 Update ooc.dm 2018-03-24 20:37:01 +01:00