Commit Graph

432 Commits

Author SHA1 Message Date
Alex Bee 038549c7e6 Merge pull request #70 from ripcurld00d/privmsg_enhanced
Add variadic Privmsg functions.
2015-10-15 20:36:05 +01:00
ripcurld00d af8bd35c8a Add variadic Privmsg functions
Privmsgln and Privmsgf are variadic versions of the Privmsg function.
They format a message according to fmt.Sprintln and fmt.Sprintf
respectively and send it using Privmsg.

Note: Although the Privmsgln function's name infers that a new-line
character is added at the end of the message, it does not do that.

For example, the following send "golang is # 1 IMHO" to #go-nuts:

    c.Privmsgln("#go-nuts", "golang is #", 1, " IMHO")
    c.Privmsgf("#go-nots", "%s %d %s", "golang is #", 1, "IMHO")
2015-10-15 11:49:05 +03:00
Alex Bramley 7aa4a15773 Update contributors list in README. 2015-09-20 18:15:27 +01:00
Alex Bee 71e0f84256 Merge pull request #69 from scrapbird/master
Add support for connecting to IRC servers via a proxy.
2015-09-20 14:06:48 +01:00
Brenton Morris f90b498ac4 Removed the config.Proxy variable and renamed config.ProxyServer to config.Proxy. Client now connects over the specified proxy if config.Proxy isn't an empty string. 2015-09-20 19:37:26 +12:00
Alex Bee 2c26d1db08 Merge pull request #68 from ripcurld00d/readme_update
Update the README.md file to reflect current reality.
2015-09-19 13:46:43 +01:00
Brenton Morris 866e8dac8a Added proxy support 2015-09-14 16:32:23 +12:00
Boaz Shuster 7252b8c67e Update the README.md file
I am assuming the code given in the "Using the framework" should run.

* Using client's consts, such as CONNECTED.
* In Go 1.4, `error` implements only the `Error()` function.
* The `c` variable is already declared in line 5, no need for `:=` in line 12
2015-08-19 10:24:05 +03:00
Alex Bramley fdb1c8229d Support other chantypes in (*Line).Public. Fixes #65. 2015-07-28 18:10:23 +01:00
Alex Bee 8101dbaedd Merge pull request #64 from tmcarr/patch-1
Fixed a typo in Readme.md
2015-07-28 17:54:09 +01:00
Travis Carr d5ece47310 Fixed a typo in Readme.md
Just noticed a typo, thought I'd fix that right up. s/hander/handler
2015-07-26 16:59:05 -07:00
Alex Bee 876b70baa9 Merge pull request #63 from Gentux/pr
Change "gomock" repository URL
2015-06-16 07:42:22 +01:00
Alex Bee f577524d46 Merge pull request #62 from kidanger/master
Gomock moved to an official repository.
2015-06-16 07:42:02 +01:00
Romain Soufflet 2db4b19502 Change "gomock" repository URL 2015-06-15 13:59:14 +02:00
kidanger ce963dc793 fix gmock url 2015-06-13 10:43:59 +01:00
Alex Bramley 5df3729ce8 Bad fluffle not running tests after changes. 2015-04-17 20:42:59 +01:00
Alex Bramley bf4cdc99d1 Merge branch 'master' of github.com:fluffle/goirc
Conflicts:
	client/commands.go
2015-04-15 22:31:12 +01:00
Alex Bramley ed92e36e8e Attempt to improve the godoc of client. 2015-04-15 22:27:50 +01:00
Alex Bee 09f0447bb9 Merge pull request #60 from StalkR/ellipsis
client/commands: leave space for ellipsis
2015-04-14 11:20:50 +01:00
StalkR 30087ae0f3 client/commands: leave space for ellipsis 2015-04-14 12:18:11 +02:00
Alex Bramley f12a174523 Only dispatch DISCONNECTED once. 2015-04-14 07:50:39 +01:00
Alex Bramley cd24432da4 More deadlock fixes for #58.
- Remove lock in Me().
 - Move call to initialise() to Connect().
 - Ensure DISCONNECTED event is fired after shutdown() lock is released.
2015-04-13 19:05:42 +01:00
Alex Bramley e1ddd58df4 Update tests for deadlock fix. 2015-04-02 09:35:58 +01:00
Alex Bramley 861f24a130 Alternative deadlock fix. 2015-04-02 09:22:42 +01:00
Alex Bramley b4870bc685 Tell state tracker all the information about Me. 2015-04-01 17:54:33 +01:00
Alex Bramley 0cac69d2ee Merge branch 'state-copy'. Fixes #49, #35.
Overhaul the state tracker to return copies of data that should be correct
at the time of the response. Subsequent changes to tracked IRC state will not
be reflected in the copies. For people fixing up their code because this merge
broke everything, you probably want to be paying particular attention to the
use of conn.Me() instead of conn.cfg.Me.

Sorry if this causes you hassle, it's for the best.

Lastly, if kballard is watching: sorry dude, you were mostly right ;-)
2015-02-27 19:56:41 +00:00
Alex Bramley 4396b459a2 Don't change the depth of golog's default logger. Not cool, man! 2015-01-02 15:07:17 +00:00
Alex Bramley 97dedfdf5e Update contributors list in README. 2015-01-02 14:46:17 +00:00
Alex Bramley d1162c0f7b Fix up half-arsed logging shims; set depth. 2015-01-02 14:35:03 +00:00
Alex Bramley 0216e0406e Update client for new state tracking code. 2015-01-02 12:58:50 +00:00
Alex Bramley d11d209dcd Generate new tracker mock. 2014-12-31 17:50:03 +00:00
Alex Bramley ed6eb6115f Race test changes. 2014-12-31 17:37:08 +00:00
Alex Bramley c5830d598f Merge branch 'state-races' into state-copy
Test that races found in old code are no longer found in new code.
2014-12-31 17:32:15 +00:00
Alex Bramley 36e4aeb603 An attempt to trigger data races in the state tracker. 2014-12-31 17:31:50 +00:00
Alex Bramley f3c49069c0 The great state tracker privatisation 3/3: tracker. 2014-12-31 13:17:46 +00:00
Alex Bramley 4dd8bc72d5 The great state tracker privatisation 2/3: nicks. 2014-12-31 13:17:28 +00:00
Alex Bramley bffe946388 The great state tracker privatisation 1/3: channels. 2014-12-31 13:17:11 +00:00
Alex Bee a3debed539 Merge pull request #55 from StalkR/disconnected
client/connection: keep information in disconnected event, revert #43
2014-12-30 13:00:39 +00:00
StalkR 262ea31065 client/connection: keep information in disconnected event 2014-12-28 12:39:30 +01:00
Alex Bramley 2e39250355 Allow Join command to take an optional key. 2014-12-23 18:21:53 +00:00
Alex Bee 57eecccd1b Merge pull request #52 from Krayons/master
Added timeout to deal with connecting to slow and unreliable IRCservers
2014-12-20 18:50:39 +00:00
kyle 5e5f5f0253 Moved timeout to Client from Connect 2014-12-20 20:39:44 +02:00
kyle dde47a6a32 fixed inconsistencies 2014-12-20 19:36:08 +02:00
kyle d1aa016bb0 Merge remote-tracking branch 'upstream/master'
Conflicts:
	client/connection.go
2014-12-20 19:17:43 +02:00
kyle c8beed09da Fixed formatting with go fmt 2014-12-20 16:56:58 +02:00
kyle 39a7da0a37 Added timeout to deal with connecting to slow and unreliable irc servers 2014-12-20 15:23:57 +02:00
Alex Bee 8231942086 Merge pull request #51 from bramp/ipv6
Fixed the building of the server/port string to be IPv6 safe.
2014-12-18 21:43:26 +00:00
Alex Bee 0f3cbf87fe Merge pull request #50 from bramp/add-time
Ensure the time field is populated on the pseudo line events, such as co...
2014-12-03 15:40:03 +00:00
Andrew Brampton d7116e2bd0 Also add time to the Connected event. 2014-11-30 16:00:21 -08:00
Andrew Brampton 706c90baa3 Ensure the time field is populated on the pseudo line events, such as connecting and disconnecting. 2014-11-30 15:42:08 -08:00