ticket_manager 
Vars | |
all_tickets | The set of all tickets |
---|---|
emojis | The set of all available emojis |
Procs | |
add_ticket_message | Adds message to ticket. Allows HTML tags from both sides and parses emoji Will send chat message about new ticket message to admin, if reply from ticket initiator and message to player if replies someone from admins |
add_to_ticket_writers | Adds user to ticket writers when he starts typing. Used for type indicator in ticket chat UI |
can_send_message | Checks if user can send message to ticket. |
client_login | Adds little notification to ticket chat about player reconnect |
client_logout | Adds little notification to ticket chat about player disconnect |
link_admin_to_ticket | Link admin to ticket. |
open_existing_ticket | Checking existing user ticket, and send message to it IF stuff writed something |
remove_from_ticket_writers | Removes user from ticket writers when he stops typing or sends message. Used for type indicator in ticket chat UI |
send_chat_message_to_admin | Send player ticket reply to admin, if he's online. And make some logs for other admins |
send_chat_message_to_player | Send admin ticket reply to player, if he's online. And make some logs for other admins |
set_ticket_state | Changes ticket state. Allowed new states: TICKET_OPEN, TICKET_CLOSED, TICKET_RESOLVED |
Var Details
all_tickets 
The set of all tickets
emojis 
The set of all available emojis
Proc Details
add_ticket_message
Adds message to ticket. Allows HTML tags from both sides and parses emoji Will send chat message about new ticket message to admin, if reply from ticket initiator and message to player if replies someone from admins
add_to_ticket_writers
Adds user to ticket writers when he starts typing. Used for type indicator in ticket chat UI
can_send_message
Checks if user can send message to ticket.
client_login
Adds little notification to ticket chat about player reconnect
client_logout
Adds little notification to ticket chat about player disconnect
link_admin_to_ticket
Link admin to ticket.
open_existing_ticket
Checking existing user ticket, and send message to it IF stuff writed something
remove_from_ticket_writers
Removes user from ticket writers when he stops typing or sends message. Used for type indicator in ticket chat UI
send_chat_message_to_admin
Send player ticket reply to admin, if he's online. And make some logs for other admins
send_chat_message_to_player
Send admin ticket reply to player, if he's online. And make some logs for other admins
set_ticket_state
Changes ticket state. Allowed new states: TICKET_OPEN, TICKET_CLOSED, TICKET_RESOLVED