mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
enhancements to roleplay
This commit is contained in:
parent
2bb36e6cb8
commit
2428acab95
5 changed files with 101 additions and 43 deletions
|
|
@ -82,3 +82,10 @@ func (err *IncompatibleSchemaError) Error() string {
|
|||
func NanoToTimestamp(nanotime int64) string {
|
||||
return time.Unix(0, nanotime).UTC().Format(IRCv3TimestampFormat)
|
||||
}
|
||||
|
||||
func BoolDefaultTrue(value *bool) bool {
|
||||
if value != nil {
|
||||
return *value
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue