Server-side hook of the Spelling plugin that capitalises the first letter of messages with the ic chat filter and ends them with a period.

ChatboxAdjustMessageInfo changes info.text in place, keeps leading and trailing quotes and adds no period after a period, exclamation mark or question mark. Messages with forceTranslate set are language phrases and are left alone.

Summary

Hooks

Called before a chat message is sent; capitalises in-character messages and ends them with a period.

Hooks

PLUGIN:ChatboxAdjustMessageInfo(info, listeners)

server gamemodes/cwhl2rp/plugins/hud-spelling/plugin/sv_hooks.lua:20

Implements hook ChatboxAdjustMessageInfo

Called before a chat message is sent; capitalises in-character messages and ends them with a period.

Leading and trailing quotes are kept, and no period is added after ., ! or ?. Messages made of language phrases (info.forceTranslate) are not changed.

Parameters

  • info Map The message info; info.text is changed in place for the ic filter
  • listeners List<Player> The players who will receive the message; may also be a single player or nil

Defined in