87a2ab50c1
Reform: bring back tests + fix server opts
2021-11-19 09:26:51 -08:00
58c1d27f2c
Enhance: passive tracking
2021-11-15 19:43:56 -08:00
baf2e0dedf
Enhance: keep user info after we part channels
2021-11-14 21:55:47 -08:00
79e2583dda
Fix: nil pointer dereference in IsConnected
2021-11-14 21:13:43 -08:00
ce2eeb8072
Refactor: slightly less hellfire
2021-11-09 14:07:47 -08:00
ff65f6fa03
Fix: panic when spawning 10,000 bots :^)
2021-11-09 08:14:35 -08:00
b9856ab64e
re-implemenet network detection
2021-10-28 12:06:57 -07:00
7f101f3656
More: hellfire
2021-10-17 17:16:59 -07:00
410e8686ab
Fix: broken spinlock attempt
2021-10-17 15:05:14 -07:00
ea8bd7c774
Merge branch 'master' of github.com:yunginnanet/girc-atomic
2021-10-17 11:46:00 -07:00
f17812708d
Multiclient: attach network name to events
2021-10-17 11:45:46 -07:00
e809c349d0
Create README.md
2021-10-09 10:12:55 -07:00
53bcfb4ee5
Fix: ircd info enumeration
2021-10-09 10:06:42 -07:00
d32dd5e8a0
Fix nil compiled time and lint
2021-10-09 08:50:48 -07:00
c46e976ff3
Fix: blank source panic
2021-10-09 06:54:41 -07:00
9724515d2b
Fix: event parsing bug
2021-10-09 06:37:51 -07:00
b84d822ec5
Fix: go module and event bug
2021-10-09 06:25:17 -07:00
c4ff5a6022
Update: README.md
2021-10-09 02:51:27 -07:00
6ef31ffdcb
Update: README.md
2021-10-09 02:45:04 -07:00
606b5a452c
I'm slightly drunk and I don't know what I'm doing.
2021-10-08 00:30:04 -07:00
e50801a78e
Update README.md
2021-10-05 05:49:19 -07:00
9065b0d6ab
New: store data bout the connected IRC server
2021-10-03 15:28:29 -07:00
1556e364c0
I'll need to rewrite tests later. Safety last.
2021-10-03 05:19:12 -07:00
59d0b7398e
fix go-mod path
2021-10-03 05:16:21 -07:00
4c1d73dcbd
add util.go
2021-10-03 05:06:48 -07:00
01ce96b07a
Ever cook bacon on your CPU cooler?
2021-10-01 06:15:34 -07:00
Liam Stanley
771323f162
colon should only cause prefix if the param starts with a colon
2021-06-11 17:32:46 -04:00
Liam Stanley
4219526e1d
mirror ContainsAny for Len() check as well
2021-06-11 17:16:42 -04:00
Liam Stanley
f97c533ce1
add addl tests
2021-06-11 17:16:26 -04:00
Liam Stanley
b7e90b27e4
Merge branch 'master' into msg-with-colon-but-no-space
2021-06-11 16:47:58 -04:00
nmeum
28ef073485
Fix conversion errors ( #46 )
2021-06-11 15:56:21 -04:00
Sören Tempel
8929b1a531
event: Fix serialization of messages with colon but no space
...
For messages that contain either a colon **or** a space character, a
messagePrefix needs to be added to the serialized messages. Previously,
a message prefix was only added for messages containing a space
character. This causes messages which only contain a colon, but not a
space to be serialized incorrectly.
For example, prior to this commit a command like `PRIVMSG #foo ::)`,
which should send the message `:)` to the channel `#foo`, was
serialized as `PRIVMSG #foo :)` which only causes a `)` character to be
sent to the channel `#foo`.
2021-06-04 21:30:28 +02:00
nmeum
2cb73c3772
event: Fix PRIVMSG/NOTICE format string ( #45 )
...
Fixes a minor typo introduced in #44 .
2020-12-30 05:53:53 -05:00
nmeum
288d953b28
event: Use different source format for PRIVMSG and NOTICE ( #44 )
...
This allows distinguishing the two commands in the output of the
Pretty() function. This is useful for IRC client which use the output of
the Pretty() function for formating IRC messages.
2020-12-29 19:19:53 -05:00
Liam Stanley
4fc93959e1
update to latest supported go.mod format
2019-07-31 23:55:59 -04:00
Liam Stanley
812b7950e0
better handling of tag+verb messages without a source; handle some invalid extraneous space events from servers like unreal; additional (basic) event tests
2019-07-31 23:44:43 -04:00
Liam Stanley
05b8be7a4b
provide direct quit reason support ( closes #16 )
2019-07-29 20:44:50 -04:00
Liam Stanley
8adc1b3054
better checks before ratelimiting; drop events if disconnected ( closes #14 )
2019-07-29 19:35:12 -04:00
Liam Stanley
f98113f16d
use runtime.CallersFrames over Caller for panic recovery info; closes #29
2019-07-29 18:23:09 -04:00
Liam Stanley
33f2d454a5
bugfix: wrap ipv6 addresses in Client.Server() to prevent improper
...
escaping of colons
commit a2ddeff515d14fd010bd3d705ea6af3d3c791869
Merge: 634e679 6a0f21c
Author: Liam Stanley <me@liamstanley.io>
Date: Sat Jul 27 00:51:17 2019 -0400
fix merge conflicts
commit 6a0f21c9750705ed9aff2bd398640dc1f8b3e6b0
Author: Sören Tempel <soeren+git@soeren-tempel.net>
Date: Sun Jul 21 21:18:23 2019 +0200
use JoinHostPort() in client.Server()
This fixes a bug where girc would fail to connect if the server was
specified as an IPv6 address since appending a colon is not enough in
that case.
2019-07-27 00:56:07 -04:00
Liam Stanley
634e679a3d
initial sts functionality
2019-07-11 23:36:29 -04:00
Liam Stanley
b8ad83b1fb
re-add draft versions of message-tags and msgid for backwards compatibility
2019-07-04 15:53:02 -04:00
Liam Stanley
f62ce57a2f
add the ability to force debug logs with GIRC_DEBUG
2019-07-04 15:05:28 -04:00
Liam Stanley
e71da9d979
update to non-draft msgid spec
2019-07-04 14:43:53 -04:00
Liam Stanley
0c617b31b8
update to non-draft message-tags spec
2019-07-04 14:40:45 -04:00
Liam Stanley
51b8e096d3
move away from Event.Trailing
...
* initial work towards moving away from Event.Trailing
* Event.Trailing() -> Event.Last()
* fix incorrect go.mod/go.sum files
* fixes for pretty printed topics and CTCPs
* remove unneeded whitespace check
* clarify potential contents of Event.Params
* better splitting of hopcount from realname
2019-02-10 16:20:25 -05:00
Liam Stanley
c1e59a02f4
add WebIRC support; closes #33 and #34
2019-01-02 10:33:29 -05:00
nmeum
a39e11bebb
remove use of unneeded rfc1459 conversion ( #31 )
...
The lookupUser function already converts the argument to an RFC 1459
compliant nick and there is no need to convert it twice.
2018-12-24 08:32:43 -08:00
Liam Stanley
14ace7725c
fix comment
2018-12-14 20:27:26 -08:00
nmeum
514d004b74
client: Add GetID() function ( #28 )
...
Makes it a bit less verbose to check if an event originated from once
own client. While at it the existing code was modified accordingly.
2018-12-10 12:08:53 -08:00