James Lu
c57fabc9ef
core, protocols: add server argument to IrcUser ( #355 )
2016-11-09 18:40:16 -08:00
James Lu
8589feaedf
protocols: fix incomplete renames from c5c77eeb97
2016-09-12 20:16:56 -07:00
James Lu
ffa89f1e01
nefarious: fix UnboundLocalError when no modes are given on user introduction
...
Reported by Kev`Bz via IRC.
2016-09-07 06:57:03 -07:00
James Lu
c5c77eeb97
protocols: chandata->channeldata for MODE and JOIN hooks
2016-09-02 17:52:19 -07:00
James Lu
ae94bec6b8
protocols: add a chandata key to SJOIN hook payloads
2016-08-27 18:56:36 -07:00
James Lu
3c7b201f57
protocols: rename 'oldchan' in MODE payloads to 'chandata'
2016-08-27 17:46:35 -07:00
James Lu
2c7b5669bd
protocols: strip leading prefix modes before checking whether msg target is a channel
2016-07-31 20:30:51 -07:00
James Lu
8eed60a8f5
nefarious: fix nameerror on start
2016-07-29 01:02:18 -07:00
James Lu
852bd74c3b
core: enumerate our server after calling proto.connect()
...
This gives protocol modules a chance to manipulate their SID before it's added to the internal server list, replacing hacks previously used by the Nefarious and Clientbot modules.
This is the first step to sid-less servers :)
2016-07-28 21:50:51 -07:00
James Lu
af21063834
nefarious: fix usermode changes internally applying on the wrong target
...
A regression from fca23c7d55
overwrote the target UID with a nick before passing it into applyModes(), which raises an "unknown mode target" warning and causes the mode change to be dropped.
2016-07-27 16:55:59 -07:00
James Lu
fca23c7d55
nefarious: forward CMODE and KICK through the server if the sender isn't opped
...
This prevents mode bounces, kick failures, and the HACK server notices from showing up.
2016-07-26 18:31:23 -07:00
James Lu
80d7be8c7d
nefarious: add (untested) SVSNICK handler based on P10 docs
...
Closes #269 .
2016-07-12 21:58:08 -07:00
James Lu
c04f9d1879
protocols: move handlers for AWAY, VERSION, WHOIS, and QUIT to ircs2s_common
2016-07-11 16:08:46 -07:00
James Lu
c1cd6f42a0
updateTS: Fix mode tracking again
...
It looks like we actually do need to track whether we're sending or receiving modes. This time, do so /properly/.
2016-07-10 21:36:18 -07:00
James Lu
16b162ffbe
protocols: update nick TS on nick change ( #267 )
2016-07-10 21:10:57 -07:00
James Lu
ade0fa707e
nefarious: fix wrong variable in last commit
2016-07-10 21:01:01 -07:00
James Lu
8b04a51daf
nefarious: only send EOB_ACK to uplink
...
Closes #266 .
2016-07-10 20:37:21 -07:00
James Lu
ed6293e54a
nefarious: define access_sort() as a static method
2016-07-05 00:42:17 -07:00
James Lu
5ef135d888
nefarious: use handle_kill (with kill path support) from ircs2s_common
...
Ref #239 .
2016-07-05 00:31:24 -07:00
James Lu
bfa69815b4
protocols: split things common between nefarious and ts6_common into a new ircs2s_common module
2016-07-05 00:24:23 -07:00
James Lu
26f4a9c276
nefarious: fix 'changedmodes' type inconsistency causing crashes
2016-07-05 00:13:33 -07:00
James Lu
fbeb3a3747
protocols: fix ts actually defaulting to None in sjoin()
2016-06-25 13:56:24 -07:00
James Lu
d2956c3d00
protocols: return uplink field in SQUIT handlers
2016-06-25 13:34:43 -07:00
James Lu
5cb550afd9
nefarious: fix wrong variable in "/join 0" handling causing crashes
2016-06-25 11:33:56 -07:00
James Lu
167963ddc4
updateTS: fix handling for outbound modes
...
Outgoing and incoming modes should be handled the same way - we're only dealing with a "received TS" which could originate from PyLink (sjoin() in protocols) OR the uplink.
2016-06-24 13:24:44 -07:00
James Lu
6555ba2e6a
nefarious: burst bans according to the P10 standard
...
Closes #250 .
2016-06-23 22:36:22 -07:00
James Lu
f2b139c828
core: make inbound SJOINs also respect the updateTS() rules
2016-06-22 22:28:15 -07:00
James Lu
6b8e80cd5b
core/protocols: add modes option in sjoin(), TS6 BMASK, and mode TS rules in updateTS()
...
Closes #249 .
Closes #250 .
2016-06-22 21:34:16 -07:00
James Lu
481d70eff8
New import paths for properly installed pylinkirc
2016-06-20 18:18:54 -07:00
James Lu
0124678ed3
nefarious: use SETHOST instead of FAKE for internal clients
...
Closes #209 . Thanks to Jobe and Andromeda on #evilnet for the help!
2016-05-28 13:21:38 -07:00
James Lu
0e298dcb4d
nefarious: support SETHOST-based (+h) cloaks
...
Closes #210 .
2016-05-28 12:53:23 -07:00
James Lu
188d2f891c
nefarious: use nicks in user MODE targets
...
This is more consistent with what Nefarious and P10 do.
2016-05-28 12:52:52 -07:00
James Lu
841d58d82e
nefarious: set umode +x when changing hosts of service clients
2016-05-28 12:15:27 -07:00
James Lu
ae87def11f
Purge c_ and u_ prefixes from named modes
...
Closes #217 .
2016-05-15 11:05:02 -07:00
James Lu
3bb1208e74
core: move toLower to Irc ( #199 )
2016-04-30 16:57:38 -07:00
James Lu
78f8a2fc8d
core: move isManipulatableClient, getHostmask to Irc
2016-04-30 16:44:37 -07:00
James Lu
064cb9b6aa
core: move reverseModes, joinModes into Irc
2016-04-30 16:33:46 -07:00
James Lu
bd0874a484
Merge branch 'wip/split-utils' into devel
2016-04-29 23:32:52 -07:00
James Lu
0061414ee5
nefarious: remove untested parsing of umode +h for now
2016-04-29 22:32:26 -07:00
James Lu
dd7b3821e9
nefarious: deduplicate outgoing BURST mode prefixes
2016-04-27 16:43:09 -07:00
James Lu
1bd2bd760c
hybrid, nefarious: add missing BURST/SJOIN->JOIN hook mapping
...
Reported by Rascle on IRC.
2016-04-27 16:42:38 -07:00
James Lu
a8fc9428cf
protocols: migrate to irc.parseModes/applyModes ( #199 )
2016-04-24 21:44:31 -07:00
James Lu
40a86de040
protocols: reword spawnClient description text
2016-04-24 21:17:56 -07:00
James Lu
f8c2ee3ed3
protocols: use KeyedDefaultdict to enumerate UID generators
2016-04-24 21:16:41 -07:00
James Lu
2c60aa6395
Separate UID/SID generators into various protocol modules ( #199 )
2016-04-24 21:08:07 -07:00
James Lu
128a6363d5
nefarious: easier SID encoding using struct
2016-04-23 10:54:54 -07:00
James Lu
0e0d96efc6
nefarious: properly decode IPv6 addresses, move IP decoding into separate function
2016-04-23 10:44:17 -07:00
James Lu
9f454402d2
nefarious: don't confuse the TS argument with the user list, if a BURST is sent with only bans
2016-04-18 21:29:00 -07:00
James Lu
fd909395ff
nefarious: ignore empty BURSTs with no useful data
2016-04-18 20:59:06 -07:00
James Lu
bc578240bb
nefarious: fix checks for what is an IPv6 / IPv4 address
2016-04-18 20:54:16 -07:00