This repository has been archived by the owner on Dec 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathnode-irc.diff
executable file
·40 lines (40 loc) · 1.7 KB
/
node-irc.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
130c130
< util.log("MODE:" + message.args[0] + " sets mode: " + message.args[1]);
---
> util.log("MODE:" + message.args[0] + " sets mode: " + message.args[1] + " " + message.args[2]);
140c140
< if ( mode in self.prefixForMode ) {
---
> if ( mode in self.prefixForMode) {
142a143,145
> if (!channel.users[user]) {
> channel.users[user] = user
> }
146,147c149,150
<
< self.emit('+mode', message.args[0], message.nick, mode, user, message);
---
>
> self.emit('modeadd', message.args[0], message.nick, mode, user, message);
151c154
< self.emit('-mode', message.args[0], message.nick, mode, user, message);
---
> self.emit('moderem', message.args[0], message.nick, mode, user, message);
167c170
< self.emit('+mode', message.args[0], message.nick, mode, modeArg, message);
---
> self.emit('modeadd', message.args[0], message.nick, mode, modeArg, message);
171c174
< self.emit('-mode', message.args[0], message.nick, mode, modeArg, message);
---
> self.emit('moderem', message.args[0], message.nick, mode, modeArg, message);
213c216
< if ( match[1] in self.modeForPrefix ) {
---
> if ( match[1] in self.modeForPrefix) {
450,451c453,454
< Client.prototype.prefixForMode = {};
< Client.prototype.modeForPrefix = {};
---
> Client.prototype.prefixForMode = {'o': '@'};
> Client.prototype.modeForPrefix = {'@': 'o'};