Commit Graph

168 Commits

Author SHA1 Message Date
Alex Bramley 2b1d7068b1 Less naive flood-protection algorithm in *Conn.send() 2009-12-19 18:09:29 +00:00
Alex Bramley af8dfdb6f3 change channel reads to use 'for v := range ch {}' idiom 2009-12-19 15:30:54 +00:00
Alex Bramley 7f6c8fc232 should probably be reading from conn.out after the test for closedness 2009-12-19 14:58:41 +00:00
Alex Bramley 36976f59d0 time.Sleep() requires forced int64 type 2009-12-19 13:44:36 +00:00
Alex Bramley 2942cf2093 Add naive flood protection code to *Conn.send() 2009-12-19 13:40:50 +00:00
Alex Bramley 30fbdda75e Update 352 WHOREPLY handler to set +o and +i user modes for nick 2009-12-19 13:05:10 +00:00
Alex Bramley cdc715735f Use WHO instead of WHOIS to find information about nicks
Send a single WHO on joining channel rather than triggering a WHOIS of
every nick in the 353 RPL_NAMES handler. Avoids 'Excess Flood' when
joining a large channel ;-)
2009-12-19 12:33:54 +00:00
Alex Bramley dc1dd0333a Remove extraneous (and quite spammy) debug printing. 2009-12-18 23:59:12 +00:00
Alex Bramley 05e665bec7 add irc_test.go, update Makefile and .gitignore
add simple test code to make building this package within src/pkg happy;
update irc/Makefile whitespace -- s/    /\t/;
update .gitignore to ignore _test directory created in test build;
2009-12-18 22:50:13 +00:00
Alex Bramley e5131515b8 update README and comments so godoc creates nice helpful html documentation 2009-12-18 22:48:58 +00:00
Alex Bramley 07ff350dd0 Updated README with synopsis code 2009-12-17 21:47:33 +00:00
Alex Bramley ae8e34ff0e reformat source with gofmt to nuke all of those unneeded semicolons 2009-12-17 21:30:18 +00:00
Alex Bramley 1c31d5fb47 update vims to edit README too, maybe i'll actually add stuff. 2009-12-17 21:14:46 +00:00
Alex Bramley 6a8c1a13b2 correct syntax errors from updating go to 4450:dd9bae5c7eac 2009-12-17 21:14:01 +00:00
Alex Bramley 7191dd9177 Basic README for github. 2009-12-17 21:12:37 +00:00
Alex Bramley 79822340b5 vastly updated bot framework, now with state tracking etc. 2009-12-17 17:22:31 +00:00
Alex Bramley 4d610d1718 IRC RFCs and unreal docs for reference 2009-12-12 00:24:41 +00:00
Alex 545a88fea0 initial go IRC library, dirty hax abound :-) 2009-11-29 20:23:15 +00:00