mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-13 15:34:38 +01:00
initial course command
This commit is contained in:
@@ -272,8 +272,10 @@ func (s *Session) logMessage(opcode uint16, data []byte, sender string, recipien
|
||||
|
||||
func (s *Session) CourseExists(name string) bool {
|
||||
for _, course := range s.courses {
|
||||
if strings.ToLower(name) == strings.ToLower(course.Name) {
|
||||
return true
|
||||
for _, alias := range course.Aliases {
|
||||
if strings.ToLower(name) == strings.ToLower(alias) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user