381 Commits

Author SHA1 Message Date
Mester
1672890174 Merge 229c2d793d964bb48f45ea17623b498d798f5dcb into fd77009f8da6f3aa1511596ff92300564b40fed3 2018-01-12 19:06:09 +00:00
themester
229c2d793d Adapted my repo to shazow. Changes...
- Added new rank: Administators (or masters). This rank can add or delete operators, but cannot add or remove another administrators. Administrators rank is designed by public key on server startup.
- Added "vim mode". With this mode you can use commands as ':' instead of '/'. As you can see in the code, the Prefix parameter of Command structure was changed by a neutral parameter for future introductions of prefixes.
- New Help function. This function add help for admin rank.
- Added the following commands:
  - setnick: Administrators can change the nick of another user.
  - private: Users can stablish privates conversations. This conversations are permanent until they execute endprivate command.
  - endprivate: Finish private conversation.
  - welcome: Prints motd. Only admins can execute this.
  - whois: In whois only admins can see ip.
  - delop: Allow admins to delete an operator (or moderator as is mentioned in some parts of the code).
- Changed historyLen and roomBuffer vars.
- In cmd tool have been added fsnotify to update public key files (admin and moderator public key files). This is to prevent to restart the server everytime we want to add an administrator.
- Added new prompt mode. In this mode you can see in which room you are talking. As default is 'general'. If you start private conversation the room will be the name of the another user. This part has been introduced for future implementations.
- As I said before now exists private conversations (unlike msg command).
2018-01-12 20:04:39 +01:00
goose121
fd77009f8d Strip control characters from metadata inputs (#257) 2018-01-02 20:27:54 -05:00
Steven L
2078e13819 vendor: Switch to using go dep
* Adding go dep to the project

* Adding lockfile and changing README Go version
2017-10-12 13:40:35 -04:00
Steven L
206a9073f0 Colorize /name output with selected theme (#249)
* command.go: colorizing names according to theme (#205)

* Adding safety check for nil and mono

* Refactoring coloring into a function
2017-10-04 13:20:01 -04:00
Steven L
80a5879f04 Adding a contribituion file and issue template (#248) 2017-10-03 13:49:52 -04:00
Sahil Goel
0cb58facef tests: Fix flake in TestSetExpiring
* Fix Test Case 3 of #187
2017-08-28 14:34:47 -04:00
Dmitri Shuralyov
50001bf172 Travis: Check for gofmt issues. (#241)
* Travis: Check for gofmt issues.

This will help catch issues like https://github.com/shazow/ssh-chat/pull/240#discussion_r127626103
in CI.

* chat: Fix gofmt issue.
2017-07-17 15:03:55 -04:00
Andrey Petrov
e3b5c3712c chat/doc: gofmt 2017-07-17 10:28:33 -04:00
JimmyBot
2c1e5239c5 docs: Typo and odd grammar fix (#240)
* Typo and odd grammar

* Forgot a word in my edit
2017-07-16 10:47:45 -04:00
Oliver Graff
05597b3e6a Fix unit tests / Travis (#238)
* Fix net_test

* Update host test to add carriage return char

* Fix host_test so it will not hang if the SSH connection fails

Fixes #231, closes #235.
2017-06-14 09:07:24 -04:00
Oliver Graff
a631215f5b /nick: Avoid announcing when it's the same nick (#237)
Fixes #234
2017-06-13 11:12:32 -04:00
Andrey Petrov
25689a88ed chat: Emit BEL when receiving a PM.
Also get rid of extraneous SetReplyTo which was not getting set before because we were switching on the wrong type.

Closes #207
CC @sleibrock
v1.6
2017-05-11 11:23:29 -04:00
Steven L
227dad7492 command.go: modifying Theme command to show all available themes (#232)
command.go: modifying Theme command to show all available themes
2017-05-07 17:48:08 -04:00
Steven L
e800c88a56 Fixed /reply bug (#230) 2017-04-27 21:04:37 -04:00
Jesse Shapiro
7781d5b135 sshd: Add SHA256 prefix to pubkey fingerprints (#220)
Fixes #214
2016-10-22 09:49:26 -04:00
Nick Scheibenpflug
55c1def24d Windows support (fixed #217)
* Swap out gopass dependency

Remove github.com/mewbak/gopass in favor of github.com/howeyc/gopass

* Add Windows to Makefile and build_release

Added Windows/386 and Windows/amd64 to the Makefile.  Some minor changes
needed to be made to build_release to give the windows binary the ".exe"
extension.

* Makefile: remove windows/amd64
2016-09-15 13:52:55 -04:00
Andrey Petrov
3535fb35bb tests: Fix ineffectual assigns 2016-09-01 17:01:47 -04:00
Andrey Petrov
cdcc4a9931 refactor: User.Config -> User.Config() and User.SetConfig(UserConfig) 2016-08-29 10:11:39 -04:00
Andrey Petrov
454777448f refactor: User.SetColorIdx -> User.setColorIdx, preparing to abstract user 2016-08-29 09:58:17 -04:00
Andrey Petrov
33d7d26a17 chat/message: Remove User.Ignore(...) and User.Unignore(...)
Also changes some messaging
2016-08-27 15:15:07 -04:00
Andrey Petrov
d950112dd9 refactor: Id -> ID 2016-08-24 13:54:20 -04:00
Andrey Petrov
0fcc076c74 set: Switch to a common set implementation 2016-08-24 13:54:20 -04:00
Andrey Petrov
6e02b05f99 set: Improve coverage and cleanup. Switch sshchat package to use it. 2016-08-24 13:54:20 -04:00
Andrey Petrov
b0a90315d8 set: Generalized Set type 2016-08-24 13:54:20 -04:00
Andrey Petrov
c57a5acca7 tests: Fix flake in TestHostNameCollision 2016-08-24 13:54:08 -04:00
Greg Wedow
a67a9d115b /uptime: Format output to be more human-friendly 2016-08-21 12:20:53 -04:00
Greg Wedow
87d38405ae motd: Don't trim surrounding whitespace from the --motd file input. 2016-08-21 12:17:30 -04:00
Andrey Petrov
d2f08490f7 Makefile: Support building from source tarball
Fixes #168
v1.5
2016-08-17 13:34:12 -04:00
Andrey Petrov
a9603fba7d travisci: Enable go 1.7 2016-08-16 14:20:51 -04:00
Andrey Petrov
47607af729 /reply: Enabled again.
Fixes #202
2016-08-16 14:20:51 -04:00
Steven L
22e714a5ad README: Add FAQ link 2016-08-16 14:03:01 -04:00
Andrey Petrov
f41ff5e0a1 releases: Add freebsd 2016-08-16 10:47:47 -04:00
Andrey Petrov
981376f018 /help: Improve help for /ignore and /theme 2016-08-16 10:19:47 -04:00
S Leibrock
635a21d754 README: Update --help output 2016-08-16 09:22:44 -04:00
Andrey Petrov
398cd75c5e logging: Add [RemoteAddr] prefix to connection-related messages 2016-08-13 16:22:43 -04:00
Andrey Petrov
1b7af5e559 chat/message/theme: Cleanup and refactor, tweak solarized. 2016-08-13 13:59:37 -04:00
Andrey Petrov
972bb86621 chat/message/theme: Tweak default colorscheme
Fewer grey names, lighter grey for system messages.
v1.4
2016-08-12 17:13:11 -04:00
Andrey Petrov
c69cefc873 logging: More information about why connections get dropped
Fixes #197 for now, maybe more later.
2016-08-12 16:46:08 -04:00
Andrey Petrov
cfa86b3e2e /motd: Fixed set message and actual motd coming out of order.
Fixes #165
2016-08-12 16:35:00 -04:00
Andrey Petrov
f6e022548c chat/message: Fix highlighting and BEL, fix race condition.
Fixes #169
2016-08-11 15:35:50 -04:00
Andrey Petrov
92d821387b chat/message/theme: Apply PM colors, add new themes to /help, cleanup.
Fixes #191.
2016-08-11 15:09:59 -04:00
S Leibrock
f870c5761d chat/message/theme: Two new themes, solarized and hacker (#196) 2016-08-08 13:23:51 -04:00
S Leibrock
ef2cec2758 chat/message/theme: Fixing zero division error for one color themes (#195) 2016-08-07 15:12:19 -04:00
Micheal Winger
91c62966fa /msg: Send SystemMsg confirmation with each PM 2016-08-06 23:56:24 -04:00
Dmitri Shuralyov
66adee6f9a /whois: Hide IP if user isn't admin; display client and time joined. (#192)
Resolves #170.
2016-08-06 18:20:34 -04:00
Andrey Petrov
f6de73d420 ratelimiter: Bump up to 16kb/min from 4kb/min 2016-08-06 16:41:19 -04:00
Jeric
a4671ac262 README: added SHA256 fingerprint (#182) 2016-08-04 10:21:10 -04:00
Andrey Petrov
15e14a0872 ratelimit: Increase ratelimit to avoid failing handshakes
Regarding #171
2016-08-03 20:01:07 -04:00
Andrey Petrov
c8661e6883 motd: Allow for reading the current motd when no additional args given.
Closes #155, merges #157

Squashed commit of the following:

commit bcb0810637c99223753629a2e55169b07ee9fe51
Author: Andrey Petrov <andrey.petrov@shazow.net>
Date:   Wed Aug 3 17:58:37 2016 -0400

    motd: Refactor inner conditions

commit ac28c8cb4e8dc2a0d23abe3dcf52b69175cde51b
Author: Aaron <aaron.ounn@gmail.com>
Date:   Tue Aug 2 09:38:36 2016 +0300

    Fix small issues with the help message

commit a80ae77e1d691a4ec7125be5441d4f6eea767a75
Author: Aaron <aaron.ounn@gmail.com>
Date:   Tue Aug 2 09:30:21 2016 +0300

    Print the motd if no parameters are passed

commit 2db1b3c123661cdbd622d5ba2ff81ede8cb8a951
Author: Aaron <aaron.ounn@gmail.com>
Date:   Tue Aug 2 09:29:41 2016 +0300

    Update the motd command's description
v1.3
2016-08-03 17:58:49 -04:00