|
@@ -93,6 +93,26 @@ public class WhoisResponseHandler {
|
93
|
93
|
info.put(UserInfoType.SERVER_INFO, event.getToken()[5]);
|
94
|
94
|
}
|
95
|
95
|
|
|
96
|
+ @Handler(condition = "msg.numeric == 313")
|
|
97
|
+ void handleUserPrivileges(final NumericEvent event) {
|
|
98
|
+ // :server 313 DMDirc User :is an IRC Operator
|
|
99
|
+ info.put(UserInfoType.SERVER_OPER, event.getToken()[4]);
|
|
100
|
+ }
|
|
101
|
+
|
|
102
|
+ @Handler(condition = "msg.numeric == 378")
|
|
103
|
+ void handleConnectingFrom(final NumericEvent event) {
|
|
104
|
+ // :server 378 DMDirc User :is connecting from *@hostname.tld xx.xx.xx.xx
|
|
105
|
+ if (client.equalsIgnoreCase(event.getToken()[3])) {
|
|
106
|
+ info.put(UserInfoType.REAL_ADDRESS, event.getToken()[4]);
|
|
107
|
+ }
|
|
108
|
+ }
|
|
109
|
+
|
|
110
|
+ @Handler(condition = "msg.numeric == 671")
|
|
111
|
+ void handleSecureConnection(final NumericEvent event) {
|
|
112
|
+ // :server 671 DMDirc User :is using a secure connection
|
|
113
|
+ info.put(UserInfoType.CONNECTION_SECURITY, event.getToken()[4]);
|
|
114
|
+ }
|
|
115
|
+
|
96
|
116
|
@Handler(condition = "msg.numeric == 319")
|
97
|
117
|
void handleChannelList(final NumericEvent event) {
|
98
|
118
|
// :server 319 DMDirc User :@#channel1 +#channel2 ...
|