summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-03-21 21:02:18 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-03-21 21:02:18 +0100
commitbfa6491aa037dac6dee1697a4a284b354d164f47 (patch)
tree7a9bb9b08a0885cc01998cd991f9598f45614528
parent24a94e790aad05680413bf1bb6b90d199239394e (diff)
Fix typo & kiss
-rw-r--r--duck.go2
-rw-r--r--main.go4
2 files changed, 2 insertions, 4 deletions
diff --git a/duck.go b/duck.go
index 1d126e1..f9f33f9 100644
--- a/duck.go
+++ b/duck.go
@@ -22,7 +22,7 @@ func (_ Duck) Handle(conn *irc.Conn, line *irc.Line) {
}
func (_ Duck) Help() string {
- return "Perform nuckduckgo instant answer search"
+ return "Perform duckduckgo instant answer search"
}
func init() {
diff --git a/main.go b/main.go
index 10bbb59..1ee0ae3 100644
--- a/main.go
+++ b/main.go
@@ -16,11 +16,9 @@ var (
const maxDiscon = 3
-func init() {
+func main() {
flag.Parse()
-}
-func main() {
c := irc.SimpleClient(*name)
c.EnableStateTracking()