2024-01-07 23:51:05 +00:00
|
|
|
open Types
|
|
|
|
|
|
|
|
type prefix =
|
|
|
|
| No_prefix
|
|
|
|
| Server_prefix of string
|
2024-01-11 03:49:07 +00:00
|
|
|
| User_prefix of name * userinfo option
|
2024-01-07 23:51:05 +00:00
|
|
|
|
|
|
|
val prefix_string : prefix -> string
|
|
|
|
|
2024-01-06 01:42:05 +00:00
|
|
|
type t = {
|
2024-01-07 23:51:05 +00:00
|
|
|
prefix : prefix;
|
2024-01-06 01:42:05 +00:00
|
|
|
command : string;
|
|
|
|
params : string list;
|
|
|
|
trailing : bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
val pp : Format.formatter -> t -> unit
|
|
|
|
|
2024-01-07 23:51:05 +00:00
|
|
|
val make : ?prefix:prefix -> ?always_trailing:bool ->
|
2024-01-06 01:42:05 +00:00
|
|
|
string -> string list -> t
|
|
|
|
|
|
|
|
val write : Buffer.t -> t -> unit
|
2024-01-06 20:49:50 +00:00
|
|
|
val parse : string -> t list * string
|