Skip to content
Permalink
Browse files

Fix misspelled words detected with misspell

  • Loading branch information...
nado committed Jan 20, 2016
1 parent 064dc2f commit 12e0a07730a0ec2631a52c5882f153a5880961e1
@@ -49,15 +49,15 @@ func (c *Command) Get(ib *irc.Connection, from string, to string, args []string)
}
}

// Start starts the plugin and returns any occured error, nil otherwise
// Start starts the plugin and returns any occurred error, nil otherwise
func (c *Command) Start() error {
if utils.StringInSlice(command, configuration.Config.Commands) {
c.Started = true
}
return nil
}

// Stop stops the plugin and returns any occured error, nil otherwise
// Stop stops the plugin and returns any occurred error, nil otherwise
func (c *Command) Stop() error {
c.Started = false
return nil
@@ -32,15 +32,15 @@ func (m *Middleware) Get(ib *irc.Connection, from string, to string, message str
}
}

// Start starts the middleware and returns any occured error, nil otherwise
// Start starts the middleware and returns any occurred error, nil otherwise
func (m *Middleware) Start() error {
if utils.StringInSlice(middlewareName, configuration.Config.Middlewares) {
m.Started = true
}
return nil
}

// Stop returns nil when it didnt encounter any error, the error otherwise
// Stop returns nil when it didn’t encounter any error, the error otherwise
func (m *Middleware) Stop() error {
m.Started = false
return nil
@@ -41,15 +41,15 @@ func (c *Command) Get(ib *irc.Connection, from string, to string, args []string)
}
}

// Start starts the plugin and returns any occured error, nil otherwise
// Start starts the plugin and returns any occurred error, nil otherwise
func (c *Command) Start() error {
if utils.StringInSlice(command, configuration.Config.Commands) {
c.Started = true
}
return nil
}

// Stop stops the plugin and returns any occured error, nil otherwise
// Stop stops the plugin and returns any occurred error, nil otherwise
func (c *Command) Stop() error {
c.Started = false
return nil
@@ -48,15 +48,15 @@ func (c *Command) Get(ib *irc.Connection, from string, to string, args []string)
}
}

// Start starts the plugin and returns any occured error, nil otherwise
// Start starts the plugin and returns any occurred error, nil otherwise
func (c *Command) Start() error {
if utils.StringInSlice(command, configuration.Config.Commands) {
c.Started = true
}
return nil
}

// Stop stops the plugin and returns any occured error, nil otherwise
// Stop stops the plugin and returns any occurred error, nil otherwise
func (c *Command) Stop() error {
c.Started = false
return nil
@@ -69,15 +69,15 @@ func (c *Command) Get(ib *irc.Connection, from string, to string, args []string)
}
}

// Start starts the plugin and returns any occured error, nil otherwise
// Start starts the plugin and returns any occurred error, nil otherwise
func (c *Command) Start() error {
if utils.StringInSlice(command, configuration.Config.Commands) {
c.Started = true
}
return nil
}

// Stop stops the plugin and returns any occured error, nil otherwise
// Stop stops the plugin and returns any occurred error, nil otherwise
func (c *Command) Stop() error {
c.Started = false
return nil
@@ -79,15 +79,15 @@ func (c *Command) Get(ircbot *irc.Connection, from string, to string, args []str
}
}

// Start starts the plugin and returns any occured error, nil otherwise
// Start starts the plugin and returns any occurred error, nil otherwise
func (c *Command) Start() error {
if utils.StringInSlice(command, configuration.Config.Commands) {
c.Started = true
}
return nil
}

// Stop stops the plugin and returns any occured error, nil otherwise
// Stop stops the plugin and returns any occurred error, nil otherwise
func (c *Command) Stop() error {
c.Started = false
return nil
@@ -77,15 +77,15 @@ func (m *Middleware) Get(ib *irc.Connection, from string, to string, message str
}
}

// Start starts the middleware and returns any occured error, nil otherwise
// Start starts the middleware and returns any occurred error, nil otherwise
func (m *Middleware) Start() error {
if utils.StringInSlice(middlewareName, configuration.Config.Middlewares) {
m.Started = true
}
return nil
}

// Stop stops the middleware and returns any occured error, nil otherwise
// Stop stops the middleware and returns any occurred error, nil otherwise
func (m *Middleware) Stop() error {
m.Started = false
return nil
@@ -21,7 +21,7 @@ const (
mainKey = "main"
)

// Data is the struct that contains the data about the karma intented to be stored somewhere.
// Data is the struct that contains the data about the karma intended to be stored somewhere.
type Data struct {
Karma map[string]int
}
@@ -166,7 +166,7 @@ func (c *Command) Get(ib *irc.Connection, from string, to string, args []string)
}
}

// Start starts the plugin and returns any occured error, nil otherwise
// Start starts the plugin and returns any occurred error, nil otherwise
func (c *Command) Start() error {
if utils.StringInSlice(command, configuration.Config.Commands) {
if err := database.BotStorage.CreateBucket(bucketName); err != nil {
@@ -180,7 +180,7 @@ func (c *Command) Start() error {
return nil
}

// Stop stops the plugin and returns any occured error, nil otherwise
// Stop stops the plugin and returns any occurred error, nil otherwise
func (c *Command) Stop() error {
c.Started = false
return nil
@@ -56,7 +56,7 @@ func (m *Middleware) Get(ib *irc.Connection, from string, to string, message str
}
}

// Start starts the middleware and returns any occured error, nil otherwise
// Start starts the middleware and returns any occurred error, nil otherwise
func (m *Middleware) Start() error {
if utils.StringInSlice(middlewareName, configuration.Config.Middlewares) {
if err := InitLoggers(); err != nil {
@@ -67,19 +67,19 @@ func (m *Middleware) Start() error {
return nil
}

// Stop returns nil when it didnt encounter any error, the error otherwise
// Stop returns nil when it didn’t encounter any error, the error otherwise
func (m *Middleware) Stop() error {
if !m.Started {
return nil
}
var closeErr error
if err := HistoryFile.Close(); err != nil {
log.Printf("Error closing history file : %s\n", err)
closeErr = fmt.Errorf("error occured while closing loggers’ files")
closeErr = fmt.Errorf("error occurred while closing loggers’ files")
}
if err := LinkFile.Close(); err != nil {
log.Printf("closing links file : %s\n", err)
closeErr = fmt.Errorf("error occured while closing loggers’ files")
closeErr = fmt.Errorf("error occurred while closing loggers’ files")
}

if closeErr != nil {
@@ -44,15 +44,15 @@ func (c *Command) Get(ib *irc.Connection, from string, to string, args []string)
ib.Privmsg(to, MainChain.Generate())
}

// Start starts the plugin and returns any occured error, nil otherwise
// Start starts the plugin and returns any occurred error, nil otherwise
func (c *Command) Start() error {
if utils.StringInSlice(command, configuration.Config.Commands) {
c.Started = true
}
return nil
}

// Stop stops the plugin and returns any occured error, nil otherwise
// Stop stops the plugin and returns any occurred error, nil otherwise
func (c *Command) Stop() error {
c.Started = false
return nil
@@ -53,7 +53,7 @@ func (m *Middleware) Get(ib *irc.Connection, from string, to string, message str
}
}

// Start starts the middleware and returns any occured error, nil otherwise
// Start starts the middleware and returns any occurred error, nil otherwise
func (m *Middleware) Start() error {
if utils.StringInSlice(middlewareName, configuration.Config.Middlewares) {
MainChain = NewChain("main")
@@ -67,7 +67,7 @@ func (m *Middleware) Start() error {
return nil
}

// Stop stops the middleware and returns any occured error, nil otherwise
// Stop stops the middleware and returns any occurred error, nil otherwise
func (m *Middleware) Stop() error {
MainChain = nil
m.Started = false
@@ -57,15 +57,15 @@ func (c *Command) Get(ib *irc.Connection, from string, to string, args []string)
}
}

// Start starts the plugin and returns any occured error, nil otherwise
// Start starts the plugin and returns any occurred error, nil otherwise
func (c *Command) Start() error {
if utils.StringInSlice(command, configuration.Config.Commands) {
c.Started = true
}
return nil
}

// Stop stops the plugin and returns any occured error, nil otherwise
// Stop stops the plugin and returns any occurred error, nil otherwise
func (c *Command) Stop() error {
c.Started = false
return nil
@@ -30,15 +30,15 @@ func (m *Middleware) Get(ib *irc.Connection, from string, to string, message str
Map[from] = time.Now()
}

// Start starts the middleware and returns any occured error, nil otherwise
// Start starts the middleware and returns any occurred error, nil otherwise
func (m *Middleware) Start() error {
if utils.StringInSlice(middlewareName, configuration.Config.Middlewares) {
m.Started = true
}
return nil
}

// Stop stops the middleware and returns any occured error, nil otherwise
// Stop stops the middleware and returns any occurred error, nil otherwise
func (m *Middleware) Stop() error {
m.Started = false
return nil
@@ -147,15 +147,15 @@ func (m *Middleware) Get(ib *irc.Connection, from string, to string, message str
}
}

// Start starts the middleware and returns any occured error, nil otherwise
// Start starts the middleware and returns any occurred error, nil otherwise
func (m *Middleware) Start() error {
if utils.StringInSlice(middlewareName, configuration.Config.Middlewares) {
m.Started = true
}
return nil
}

// Stop stops the middleware and returns any occured error, nil otherwise
// Stop stops the middleware and returns any occurred error, nil otherwise
func (m *Middleware) Stop() error {
m.Started = false
return nil
@@ -70,15 +70,15 @@ func (c *Command) Get(ib *irc.Connection, from string, to string, args []string)
}
}

// Start starts the plugin and returns any occured error, nil otherwise
// Start starts the plugin and returns any occurred error, nil otherwise
func (c *Command) Start() error {
if utils.StringInSlice(command, configuration.Config.Commands) {
c.Started = true
}
return nil
}

// Stop stops the plugin and returns any occured error, nil otherwise
// Stop stops the plugin and returns any occurred error, nil otherwise
func (c *Command) Stop() error {
c.Started = false
return nil
@@ -127,15 +127,15 @@ func (c *Command) fetch(query string) error {
return nil
}

// Start starts the plugin and returns any occured error, nil otherwise
// Start starts the plugin and returns any occurred error, nil otherwise
func (c *Command) Start() error {
if utils.StringInSlice(command, configuration.Config.Commands) {
c.Started = true
}
return nil
}

// Stop stops the plugin and returns any occured error, nil otherwise
// Stop stops the plugin and returns any occurred error, nil otherwise
func (c *Command) Stop() error {
c.Started = false
return nil
@@ -80,7 +80,7 @@ func (c *Command) Get(ib *irc.Connection, from string, to string, args []string)
ib.Privmsgf(to, "Registered commands : %s", strings.Join(l, " "))
}

// Start starts the plugin and returns any occured error, nil otherwise
// Start starts the plugin and returns any occurred error, nil otherwise
func (c *Command) Start() error {
if utils.StringInSlice(command, configuration.Config.Commands) {
CreateBucket()
@@ -89,7 +89,7 @@ func (c *Command) Start() error {
return nil
}

// Stop stops the plugin and returns any occured error, nil otherwise
// Stop stops the plugin and returns any occurred error, nil otherwise
func (c *Command) Stop() error {
c.Started = false
return nil
@@ -56,7 +56,7 @@ func (m *Middleware) Get(ib *irc.Connection, from string, to string, message str
ib.Privmsg(to, msg)
}

// Start starts the middleware and returns any occured error, nil otherwise
// Start starts the middleware and returns any occurred error, nil otherwise
func (m *Middleware) Start() error {
if utils.StringInSlice(middlewareName, configuration.Config.Middlewares) {
CreateBucket()
@@ -65,7 +65,7 @@ func (m *Middleware) Start() error {
return nil
}

// Stop stops the middleware and returns any occured error, nil otherwise
// Stop stops the middleware and returns any occurred error, nil otherwise
func (m *Middleware) Stop() error {
m.Started = false
return nil
@@ -75,15 +75,15 @@ func (c *Command) Get(ib *irc.Connection, from string, to string, args []string)
}
}

// Start starts the plugin and returns any occured error, nil otherwise
// Start starts the plugin and returns any occurred error, nil otherwise
func (c *Command) Start() error {
if utils.StringInSlice(pluginCommand, configuration.Config.Commands) {
c.Started = true
}
return nil
}

// Stop stops the plugin and returns any occured error, nil otherwise
// Stop stops the plugin and returns any occurred error, nil otherwise
func (c *Command) Stop() error {
c.Started = false
return nil
@@ -60,15 +60,15 @@ func (m *Middleware) Get(ib *irc.Connection, from string, to string, message str
}
}

// Start starts the middleware and returns any occured error, nil otherwise
// Start starts the middleware and returns any occurred error, nil otherwise
func (m *Middleware) Start() error {
if utils.StringInSlice(middlewareName, configuration.Config.Middlewares) {
m.Started = true
}
return nil
}

// Stop stops the middleware and returns any occured error, nil otherwise
// Stop stops the middleware and returns any occurred error, nil otherwise
func (m *Middleware) Stop() error {
m.Started = false
return nil

0 comments on commit 12e0a07

Please sign in to comment.
You can’t perform that action at this time.