mirror of
https://github.com/jeremyd/ergo.git
synced 2026-05-29 20:59:27 -07:00
enhancements to roleplay
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user