Commit Graph

21 Commits

Author SHA1 Message Date
eleksir
2bf0ac18b9 Handle error in caps check and squash 2023-10-29 14:47:35 +03:00
eleksir
a08baa5f38 Implement initial flavouor of ban by caps 2023-10-29 12:09:03 +03:00
eleksir
a9935abf53 More details in ban log message 2023-10-19 21:44:59 +03:00
eleksir
75b9ab8a8b Use warn loglevel for message about ban 2023-10-19 09:56:29 +03:00
eleksir
e48be3936e Add golangci-lint and fix a bit of errors 2023-10-15 18:16:45 +03:00
eleksir
c5f011dabc On ban event log also full nick 2023-10-08 20:55:34 -07:00
eleksir
637d7778e3 Exit on wire error explicitly, do not hope on gTomb.Dying() 2023-10-08 10:27:58 -07:00
eleksir
453c15c046 Move ban_delay to config 2023-10-01 23:12:37 -07:00
eleksir
8de8d56d67 Add little delay before ban. Looks like jabber.ru a bit on a slowpoke side. 2023-10-01 21:45:41 -07:00
eleksir
998a827d4b Implement ban by phrase regexp, extend rehash command
* ban by blacklisted phrase regex-es
* rehash now works not only in rooms, but in private messages from rooms too
2023-10-01 19:43:40 -07:00
eleksir
91eac5cb6d Fix linter errors and make Makefile more portable 2023-09-02 15:42:41 -07:00
eleksir
7f609ffb97 Fully implement ban of vilians when bot entered infested room, fix a bit MUC ping 2023-09-02 14:16:06 +03:00
eleksir
0e9fa089c0 Add comment about buny() function 2023-09-02 10:14:27 -07:00
eleksir
ae7d0365e1 Handle empty string in JidRe and NickRe as noop 2023-08-20 11:15:55 -07:00
eleksir
39ac09f82a Implement ban by nick regexp (in MUCs)
* Move ban action to separate function
* Implement ban by nick regexp
2023-08-20 10:55:18 -07:00
eleksir
75e7a22c95 Implement optional reason in room' banlist 2023-08-17 11:02:53 -07:00
eleksir
6b91648666 Implement random phrase before ban action 2023-08-17 10:08:04 -07:00
eleksir
84f7f21217 More lint fixes
* Correctly wrap errors
* Fix comments
* Add blank strings before continue, where it missing
* Reduce allocations
2023-08-13 08:40:50 -07:00
eleksir
267dd841a4 Do not os.Exit() on "wire" and xmpp-proto errors, re-run main routine and helper goroutines 2023-08-05 20:02:10 -07:00
Sergei
e8f8b3cb49 Massive cleanup - coding style, tiny bugs, typos and other errors 2023-07-29 23:12:38 -07:00
eleksir
0f1177bd91 Initial commit 2023-07-24 02:41:19 -07:00