Fix: A bug in the gogs module prevented fuzzytime from working
This commit is contained in:
		
							parent
							
								
									1dea72f6c7
								
							
						
					
					
						commit
						f58c99d73e
					
				
					 3 changed files with 5 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -3,9 +3,10 @@
 | 
			
		|||
package modules
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"log"
 | 
			
		||||
	"strings"
 | 
			
		||||
 | 
			
		||||
	"code.dnix.de/an/xlog"
 | 
			
		||||
 | 
			
		||||
	"github.com/sorcix/irc"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -13,7 +14,7 @@ var ()
 | 
			
		|||
 | 
			
		||||
func init() {
 | 
			
		||||
	MsgHandlers["announcements"] = anncouncementsHandleMessage
 | 
			
		||||
	log.Println("Initializing announcements module")
 | 
			
		||||
	xlog.Info("Announcements module initialized")
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func anncouncementsHandleMessage(m *irc.Message) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -17,7 +17,7 @@ import (
 | 
			
		|||
 | 
			
		||||
func init() {
 | 
			
		||||
	MsgHandlers["coffee"] = coffeeHandleMessage
 | 
			
		||||
	xlog.Info("Cёffee module initialized")
 | 
			
		||||
	xlog.Info("Coffee module initialized")
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func coffeeHandleMessage(m *irc.Message) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -18,7 +18,7 @@ var (
 | 
			
		|||
)
 | 
			
		||||
 | 
			
		||||
func init() {
 | 
			
		||||
	MsgHandlers["fuzzytime"] = gogsHandleMessage
 | 
			
		||||
	MsgHandlers["gogs"] = gogsHandleMessage
 | 
			
		||||
	xlog.Info("Gogs module initialized")
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue