Commit graph

153 commits

Author SHA1 Message Date
Dpeta
e03060a433
Move services functionality to services.py 2023-03-18 01:49:56 +01:00
Dpeta
62f3e21bd4
Don't subscript Qt signals (unsubscriptable-object) 2023-02-25 02:34:30 +01:00
Dpeta
2398b5a626
Remove most unnecessary str() typecasts. 2023-02-19 21:10:35 +01:00
Dpeta
69f409b9d1
Remove most unnecessary str typecasts from pesterchum.py 2023-02-19 20:06:59 +01:00
Dpeta
f6c5c1e804
Replace QString with str 2023-02-19 19:36:53 +01:00
Dpeta
70ea19e839
"QString" --> str 2023-02-19 19:04:16 +01:00
Dpeta
ec0c6cdaf9
Finish up IRC compatibility & force-valid-prefix toggle 2023-02-16 23:45:55 +01:00
Dpeta
3f7caf73b2
Add force prefix option 2023-02-15 23:41:46 +01:00
Dpeta
938cf69b85
Add IRC compatibility mode (only disables things for now . . .) 2023-02-15 23:41:45 +01:00
Dpeta
64538b2644
Use isinstance() for typechecks. 2023-02-15 17:01:27 +01:00
Dpeta
9ec4dbd088
Apply the following pylint messages:
- use-list-literal
 - use-dict-literal
 - consider-using-in
 - consider-using-from-import
2023-02-14 19:55:23 +01:00
Dpeta
e233a86436
Enforce select pylint messages 2023-02-13 20:26:05 +01:00
Dpeta
bd292b4d80
Fix kicking/banning not working 2023-02-13 16:36:44 +01:00
Dpeta
3326d7af50
Partially revert _mode changes 2023-02-12 17:26:54 +01:00
Dpeta
9d7ffee465
Pretty functional now!! 2023-02-03 22:46:48 +01:00
Dpeta
3ae70e4fe0
More aggressive autoflake 2023-01-14 23:10:19 +01:00
Dpeta
5b6d5d153f
Run all scripts through "pyupgrade --py38-plus" 2023-01-14 23:02:08 +01:00
Dpeta
bc4af153af
Fix Pylint errors and further disable console, as it is unmaintained.
Remove osVer function from ostools

Remove isOSXLeopard

only use chum.handle

Fix bad except error

Comment out console related function

fix fix* except order

fallback if i is not defined for log

fix console

Explicitly define nick() to appease pylint

Comment out connect_cb, it's unused for pchum rn

e is unsubscribable

Explicitly define 'simple' irc commands

fix exceptions part 2

fix send

Explicitly define lastmsg as None on init

iterate through copy or urls

Comment out console for not as it's unmaintained
2023-01-14 22:50:11 +01:00
Dpeta
5981a27817 Only send time on JOIN if time isn't CURRENT.
CURRENT/'i' should be taken as the default anyway, and it's much much less spammy like this.
With large memos it's very easy to trigger flood protection if every handle sends a TIME>i whenever someone joins.
2022-11-17 11:34:17 +01:00
Dpeta
2ff1a87901 Reformat with black 2022-11-17 08:44:23 +01:00
Dpeta
340ef73380 Minor linting 2022-11-17 08:42:10 +01:00
Dpeta
8d1bef4db2 Replaced unnecessary use of eval() in usermode icon function.
Don't think this was possible to abuse, but it's probably better to avoid eval anyway since it's a potential security risk.
2022-11-02 20:34:38 +01:00
MiguelX413
a51e4dd69e
Reformat codebase (#97)
* Reformat codebase with black

* Create black.yml and add black style badge to README.md
2022-10-07 22:51:40 +02:00
Dpeta
ef0898e8c7 getopt --> argparse, redid logging, code cleanup 2022-09-06 13:26:14 +02:00
Dpeta
a2ce2d09e4 PyQt5 fallback 2022-08-19 13:12:58 +02:00
Dpeta
f78a9f97ac cleanup 2022-08-07 17:38:45 +02:00
Dpeta
4e2035408c Error when failing to join memo, services notices, no toast icon fill by default 2022-06-30 09:59:34 +02:00
Dpeta
b18d4c9aee further pyqt6 changes, version, linux/macos color fix 2022-06-29 01:50:08 +02:00
Dpeta
2576be41aa PyQt5 --> PyQt6 💚 2022-06-27 04:18:37 +02:00
Dpeta
e3bdbf77f4 'i' is normal time, no need for a warning 2022-06-10 20:56:04 +02:00
Dpeta
fe53f1bf7b Explicitly set color since default differs on some platforms 2022-04-17 14:21:08 +02:00
Dpeta
082c0c9c2b 🧹🪣 Mostly pyflakes recommendations. 2022-04-11 05:57:13 +02:00
Dpeta
c070745e26 Timeline overflow conditions + ver. 2022-04-08 07:44:45 +02:00
Dpeta
fb955f5980 Fixed logviewer from memo/convo 2022-03-23 18:38:59 +01:00
Dpeta
a82d460da4 Fixed smiley-related file descriptor/handle leak ( hopefully. . . . ;w; ) 2022-03-23 05:10:06 +01:00
Dpeta
9d0f074bbe Changes to imports, contants, shebang, luaquirks, pynotify, oyoyo.
- Removed unnecessary imports.
    - Reorganized import order.
    - Removed legacy import conditions.
    - Added python3 shebang to pesterchum.py
    - Set QString to always be str, Python 2 is not supported.
    - Depreciated luaquirks.
    - Added ValueError to write exception block
    - Set "pynotify" to always be none, even if pynotify succesfully imported, since pynotify implementation is broken.
2022-03-20 00:48:19 +01:00
Dpeta
8e3c79c4b9 kickmsg* 2022-03-17 19:56:12 +00:00
Dpeta
4571b6dce7 ban/kick message to msgbox 2022-03-17 04:11:52 +00:00
unknown
2fced8122e Attempt at fixing up logging 2021-12-01 18:29:17 +01:00
Dpeta
d231f2f785 Fixed PESTERCHUM:TIME> related crash 2021-09-18 12:39:38 +02:00
unknown
29fa6386e4 Fix up of previous commits 2021-08-24 17:32:47 +02:00
Dpeta
5b4673e0dd Rewrote some aspects of channel mode management 2021-08-24 15:49:50 +02:00
Dpeta
1fd62ef404 Fileconfig + proper handlers for logging module 2021-08-10 22:45:48 +02:00
Dpeta
83343238dd Fixed crash on opening invite-only memo without being invited 2021-07-26 13:59:25 +02:00
BuildTools
7fdd7f3bd9 Changed some depreciated functions & imports 2021-04-22 17:42:24 +02:00
BuildTools
254e0532b6 Fixed issue with memo stylesheets (ty pyqt5 </3) 2021-04-12 14:50:20 +02:00
BuildTools
1aa4e65c7d Logging, soundslider, and mood icon in trollian. 2021-04-11 01:21:21 +02:00
BuildTools
eb8a3e7df8 A lot of theme-related things. 2021-04-11 00:16:53 +02:00
BuildTools
dd2188f515 Floating pesterlog fix #2 2021-03-26 21:08:11 +01:00
BuildTools
70c8b1c1c9 Fixed floating "PESTERLOGS:" in pesterchum theme.
The background was being applied to QMenu for some reason.
2021-03-26 15:14:58 +01:00