goirc/irc
Alex Bramley 17e5216144 fix race and reinit conn.Me on disconnect
* due to the blocking nature of channel reads, by the time the runLoop()
  for loop exits in that goroutine, we might well be half-way through
  reconnecting to the server -- a bad time to run conn.initialise().
  move the call to initialise() into shutdown() to ensure it happens
  in a timely manner.

* On a related note, conn.Me was retaining old channel objects in it's
  Channels map. All other references to nicks and channels are erased
  in conn.initialise(), but as we keep a seperate reference to our Nick
  object in conn.Me, we need to reinit that at the same time.
2009-12-19 19:05:32 +00:00
..
Makefile add irc_test.go, update Makefile and .gitignore 2009-12-18 22:50:13 +00:00
commands.go update README and comments so godoc creates nice helpful html documentation 2009-12-18 22:48:58 +00:00
connection.go fix race and reinit conn.Me on disconnect 2009-12-19 19:05:32 +00:00
handlers.go minor handler bug fixes in 433 and MODE 2009-12-19 18:33:54 +00:00
irc_test.go add irc_test.go, update Makefile and .gitignore 2009-12-18 22:50:13 +00:00
nickchan.go Remove extraneous (and quite spammy) debug printing. 2009-12-18 23:59:12 +00:00