removed case sensitivity of module commands
This commit is contained in:
		
							parent
							
								
									44ee1cf628
								
							
						
					
					
						commit
						6fc0ac3c9d
					
				
					 3 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -24,7 +24,7 @@ func coffeeHandleMessage(m *irc.Message) {
 | 
			
		|||
	if len(tok) < 1 {
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	switch tok[0] {
 | 
			
		||||
	switch strings.ToLower(tok[0]) {
 | 
			
		||||
	case "!kaffee":
 | 
			
		||||
		switch len(tok) {
 | 
			
		||||
		case 1:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -146,7 +146,7 @@ func twitchHandleMessage(m *irc.Message) {
 | 
			
		|||
	if len(tok) < 1 {
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	switch tok[0] {
 | 
			
		||||
	switch strings.ToLower(tok[0]) {
 | 
			
		||||
	case "!twitch":
 | 
			
		||||
		switch len(tok) {
 | 
			
		||||
		case 1:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -85,7 +85,7 @@ func weatherHandleMessage(m *irc.Message) {
 | 
			
		|||
	if len(tok) < 1 {
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	switch tok[0] {
 | 
			
		||||
	switch strings.ToLower(tok[0]) {
 | 
			
		||||
	case "!weather", "!wetter":
 | 
			
		||||
		switch len(tok) {
 | 
			
		||||
		case 1:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue