Browse Source

Fix issue 456: standard IRC commands in nicklist

git-svn-id: http://svn.dmdirc.com/trunk@3118 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Chris Smith 16 years ago
parent
commit
4e7858ce62

+ 1
- 1
src/com/dmdirc/actions/CoreActionComponent.java View File

@@ -84,7 +84,7 @@ public enum CoreActionComponent implements ActionComponent {
84 84
     /** Returns the channel umodes for the server. */
85 85
     SERVER_CHANNELUMODES {
86 86
         /** {@inheritDoc} */
87
-        public Object get(final Object argument) { return ((Server) argument).getParser().getUserModeString(); }
87
+        public Object get(final Object argument) { return ((Server) argument).getParser().getPrefixModes(); }
88 88
         /** {@inheritDoc} */
89 89
         public Class appliesTo() { return Server.class; }
90 90
         /** {@inheritDoc} */

+ 1
- 1
src/com/dmdirc/actions/defaults/umodes/ov View File

@@ -23,5 +23,5 @@ condition 0:
23 23
 metadata:
24 24
   description=Automatically sets the popup.umodes setting when connecting to a server, so that the correct user modes appear in the nicklist popup.
25 25
   author=Chris <chris@dmdirc.com>
26
-  version=1
26
+  version=2
27 27
   component=umodes

+ 20
- 0
src/com/dmdirc/actions/defaults/umodes/qaohv View File

@@ -0,0 +1,20 @@
1
+# This is a DMDirc configuration file.
2
+# Written on: Mon Dec 17 23:32:19 GMT 2007
3
+
4
+# This section indicates which sections below take key/value
5
+# pairs, rather than a simple list. It should be placed above
6
+# any sections that take key/values.
7
+keysections:
8
+  condition 0
9
+
10
+triggers:
11
+  SERVER_CONNECTED
12
+
13
+response:
14
+  /.set --server popup umodes <umodes-op\n<umodes-hop\n<umodes-voice\n-\n<umodes-admin\n<umodes-owner
15
+
16
+condition 0:
17
+  argument=0
18
+  component=SERVER_CHANNELUMODES
19
+  target=qaohv
20
+  comparison=STRING_EQUALS

+ 20
- 0
src/com/dmdirc/actions/defaults/umodes/qaov View File

@@ -0,0 +1,20 @@
1
+# This is a DMDirc configuration file.
2
+# Written on: Mon Dec 17 23:32:19 GMT 2007
3
+
4
+# This section indicates which sections below take key/value
5
+# pairs, rather than a simple list. It should be placed above
6
+# any sections that take key/values.
7
+keysections:
8
+  condition 0
9
+
10
+triggers:
11
+  SERVER_CONNECTED
12
+
13
+response:
14
+  /.set --server popup umodes <umodes-op\n<umodes-voice\n-\n<umodes-admin\n<umodes-owner
15
+
16
+condition 0:
17
+  argument=0
18
+  component=SERVER_CHANNELUMODES
19
+  target=qaov
20
+  comparison=STRING_EQUALS

+ 2
- 0
src/com/dmdirc/config/defaults/default/defaults View File

@@ -143,6 +143,8 @@ popups.umodes=<umodes-op\n<umodes-voice
143 143
 popups.umodes-op=Op:mode +o %1$s\nDeop:mode -o %1$s
144 144
 popups.umodes-hop=Half-Op:mode +h %1$s\nDehalf-op:mode -o %1$s
145 145
 popups.umodes-voice=Voice:mode +v %1$s\nDevoice:mode -v %1$s
146
+popups.umodes-admin=Make admin:mode +a %1$s\nRemove admin:mode -a %1$s
147
+popups.umodes-owner=Make owner:mode +q %1$s\nRemove owner:mode -q %1$s
146 148
 
147 149
 popups.CHAN_NICKLIST=<nick\n-\nModes:<umodes\n<chan-nick
148 150
 popups.CHAN_CHAN=

Loading…
Cancel
Save