home *** CD-ROM | disk | FTP | other *** search
MacBinary | 2001-03-26 | 10.8 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Janne Salmijarvi Optimizer (music/janneSalmijarviOptimizer)
| ext
| Supported |
1%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Mon Mar 26 10:48:08 2001, modified Mon Mar 26 10:48:08 2001, creator 'CWIE', type ASCII, 10308 bytes "chatzilla-service.js" , at 0x28c4 420 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
49%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
33%
| TrID
| raw Group 3 FAX bitmap
| default (weak)
| |
16%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| dearkID
| deark: macbinary
| default
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 14 63 68 61 74 7a 69 | 6c 6c 61 2d 73 65 72 76 |..chatzi|lla-serv|
|00000010| 69 63 65 2e 6a 73 00 00 | 00 00 00 00 00 00 00 00 |ice.js..|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 28 44 00 | 00 01 a4 b6 e5 15 38 b6 |.....(D.|......8.|
|00000060| e5 15 38 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..8.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 54 eb 00 00 |........|....T...|
|00000080| 2f 2a 20 2d 2a 2d 20 4d | 6f 64 65 3a 20 43 2b 2b |/* -*- M|ode: C++|
|00000090| 3b 20 74 61 62 2d 77 69 | 64 74 68 3a 20 34 3b 20 |; tab-wi|dth: 4; |
|000000a0| 69 6e 64 65 6e 74 2d 74 | 61 62 73 2d 6d 6f 64 65 |indent-t|abs-mode|
|000000b0| 3a 20 6e 69 6c 3b 20 63 | 2d 62 61 73 69 63 2d 6f |: nil; c|-basic-o|
|000000c0| 66 66 73 65 74 3a 20 34 | 20 2d 2a 2d 0d 20 2a 20 |ffset: 4| -*-. * |
|000000d0| 54 68 65 20 63 6f 6e 74 | 65 6e 74 73 20 6f 66 20 |The cont|ents of |
|000000e0| 74 68 69 73 20 66 69 6c | 65 20 61 72 65 20 73 75 |this fil|e are su|
|000000f0| 62 6a 65 63 74 20 74 6f | 20 74 68 65 20 4d 6f 7a |bject to| the Moz|
|00000100| 69 6c 6c 61 20 50 75 62 | 6c 69 63 0d 20 2a 20 4c |illa Pub|lic. * L|
|00000110| 69 63 65 6e 73 65 20 56 | 65 72 73 69 6f 6e 20 31 |icense V|ersion 1|
|00000120| 2e 31 20 28 74 68 65 20 | 22 4c 69 63 65 6e 73 65 |.1 (the |"License|
|00000130| 22 29 3b 20 79 6f 75 20 | 6d 61 79 20 6e 6f 74 20 |"); you |may not |
|00000140| 75 73 65 20 74 68 69 73 | 20 66 69 6c 65 0d 20 2a |use this| file. *|
|00000150| 20 65 78 63 65 70 74 20 | 69 6e 20 63 6f 6d 70 6c | except |in compl|
|00000160| 69 61 6e 63 65 20 77 69 | 74 68 20 74 68 65 20 4c |iance wi|th the L|
|00000170| 69 63 65 6e 73 65 2e 20 | 59 6f 75 20 6d 61 79 20 |icense. |You may |
|00000180| 6f 62 74 61 69 6e 20 61 | 20 63 6f 70 79 20 6f 66 |obtain a| copy of|
|00000190| 0d 20 2a 20 74 68 65 20 | 4c 69 63 65 6e 73 65 20 |. * the |License |
|000001a0| 61 74 20 68 74 74 70 3a | 2f 2f 77 77 77 2e 6d 6f |at http:|//www.mo|
|000001b0| 7a 69 6c 6c 61 2e 6f 72 | 67 2f 4d 50 4c 2f 0d 20 |zilla.or|g/MPL/. |
|000001c0| 2a 20 0d 20 2a 20 53 6f | 66 74 77 61 72 65 20 64 |* . * So|ftware d|
|000001d0| 69 73 74 72 69 62 75 74 | 65 64 20 75 6e 64 65 72 |istribut|ed under|
|000001e0| 20 74 68 65 20 4c 69 63 | 65 6e 73 65 20 69 73 20 | the Lic|ense is |
|000001f0| 64 69 73 74 72 69 62 75 | 74 65 64 20 6f 6e 20 61 |distribu|ted on a|
|00000200| 6e 20 22 41 53 0d 20 2a | 20 49 53 22 20 62 61 73 |n "AS. *| IS" bas|
|00000210| 69 73 2c 20 57 49 54 48 | 4f 55 54 20 57 41 52 52 |is, WITH|OUT WARR|
|00000220| 41 4e 54 59 20 4f 46 20 | 41 4e 59 20 4b 49 4e 44 |ANTY OF |ANY KIND|
|00000230| 2c 20 65 69 74 68 65 72 | 20 65 78 70 72 65 73 73 |, either| express|
|00000240| 20 6f 72 0d 20 2a 20 69 | 6d 70 6c 69 65 64 2e 20 | or. * i|mplied. |
|00000250| 53 65 65 20 74 68 65 20 | 4c 69 63 65 6e 73 65 20 |See the |License |
|00000260| 66 6f 72 20 74 68 65 20 | 73 70 65 63 69 66 69 63 |for the |specific|
|00000270| 20 6c 61 6e 67 75 61 67 | 65 20 67 6f 76 65 72 6e | languag|e govern|
|00000280| 69 6e 67 0d 20 2a 20 72 | 69 67 68 74 73 20 61 6e |ing. * r|ights an|
|00000290| 64 20 6c 69 6d 69 74 61 | 74 69 6f 6e 73 20 75 6e |d limita|tions un|
|000002a0| 64 65 72 20 74 68 65 20 | 4c 69 63 65 6e 73 65 2e |der the |License.|
|000002b0| 0d 20 2a 20 0d 20 2a 20 | 54 68 65 20 4f 72 69 67 |. * . * |The Orig|
|000002c0| 69 6e 61 6c 20 43 6f 64 | 65 20 69 73 20 6d 6f 7a |inal Cod|e is moz|
|000002d0| 69 6c 6c 61 2e 6f 72 67 | 20 63 6f 64 65 2e 0d 20 |illa.org| code.. |
|000002e0| 2a 20 0d 20 2a 20 54 68 | 65 20 49 6e 69 74 69 61 |* . * Th|e Initia|
|000002f0| 6c 20 44 65 76 65 6c 6f | 70 65 72 20 6f 66 20 74 |l Develo|per of t|
|00000300| 68 65 20 4f 72 69 67 69 | 6e 61 6c 20 43 6f 64 65 |he Origi|nal Code|
|00000310| 20 69 73 20 4e 65 74 73 | 63 61 70 65 0d 20 2a 20 | is Nets|cape. * |
|00000320| 43 6f 6d 6d 75 6e 69 63 | 61 74 69 6f 6e 73 20 43 |Communic|ations C|
|00000330| 6f 72 70 6f 72 61 74 69 | 6f 6e 2e 20 20 50 6f 72 |orporati|on. Por|
|00000340| 74 69 6f 6e 73 20 63 72 | 65 61 74 65 64 20 62 79 |tions cr|eated by|
|00000350| 20 4e 65 74 73 63 61 70 | 65 20 61 72 65 0d 20 2a | Netscap|e are. *|
|00000360| 20 43 6f 70 79 72 69 67 | 68 74 20 28 43 29 20 31 | Copyrig|ht (C) 1|
|00000370| 39 39 39 20 4e 65 74 73 | 63 61 70 65 20 43 6f 6d |999 Nets|cape Com|
|00000380| 6d 75 6e 69 63 61 74 69 | 6f 6e 73 20 43 6f 72 70 |municati|ons Corp|
|00000390| 6f 72 61 74 69 6f 6e 2e | 20 20 41 6c 6c 0d 20 2a |oration.| All. *|
|000003a0| 20 52 69 67 68 74 73 20 | 52 65 73 65 72 76 65 64 | Rights |Reserved|
|000003b0| 2e 0d 20 2a 20 0d 20 2a | 20 43 6f 6e 74 72 69 62 |.. * . *| Contrib|
|000003c0| 75 74 6f 72 28 73 29 3a | 20 0d 20 2a 20 53 65 74 |utor(s):| . * Set|
|000003d0| 68 20 53 70 69 74 7a 65 | 72 20 3c 73 73 70 69 74 |h Spitze|r <sspit|
|000003e0| 7a 65 72 40 6e 65 74 73 | 63 61 70 65 2e 63 6f 6d |zer@nets|cape.com|
|000003f0| 3e 0d 20 2a 20 52 6f 62 | 65 72 74 20 47 69 6e 64 |>. * Rob|ert Gind|
|00000400| 61 20 3c 72 67 69 6e 64 | 61 40 6e 65 74 73 63 61 |a <rgind|a@netsca|
|00000410| 70 65 2e 63 6f 6d 3e 0d | 20 2a 2f 0d 0d 2f 2a 0d |pe.com>.| */../*.|
|00000420| 20 2a 20 54 68 69 73 20 | 66 69 6c 65 20 63 6f 6e | * This |file con|
|00000430| 74 61 69 6e 73 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |tains th|e follow|
|00000440| 69 6e 67 20 63 68 61 74 | 7a 69 6c 6c 61 20 72 65 |ing chat|zilla re|
|00000450| 6c 61 74 65 64 20 63 6f | 6d 70 6f 6e 65 6e 74 73 |lated co|mponents|
|00000460| 3a 0d 20 2a 20 31 2e 20 | 43 6f 6d 6d 61 6e 64 20 |:. * 1. |Command |
|00000470| 6c 69 6e 65 20 68 61 6e | 64 6c 65 72 20 73 65 72 |line han|dler ser|
|00000480| 76 69 63 65 2c 20 66 6f | 72 20 72 65 73 70 6f 6e |vice, fo|r respon|
|00000490| 64 69 6e 67 20 74 6f 20 | 74 68 65 20 2d 63 68 61 |ding to |the -cha|
|000004a0| 74 20 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 0d 20 |t comman|d line. |
|000004b0| 2a 20 20 20 20 6f 70 74 | 69 6f 6e 2e 20 28 43 4c |* opt|ion. (CL|
|000004c0| 69 6e 65 48 61 6e 64 6c | 65 72 29 0d 20 2a 20 32 |ineHandl|er). * 2|
|000004d0| 2e 20 43 6f 6e 74 65 6e | 74 20 68 61 6e 64 6c 65 |. Conten|t handle|
|000004e0| 72 20 66 6f 72 20 72 65 | 73 70 6f 6e 64 69 6e 67 |r for re|sponding|
|000004f0| 20 74 6f 20 63 6f 6e 74 | 65 6e 74 20 6f 66 20 74 | to cont|ent of t|
|00000500| 79 70 65 20 78 2d 61 70 | 70 6c 69 63 61 74 69 6f |ype x-ap|plicatio|
|00000510| 6e 2d 69 72 63 0d 20 2a | 20 20 20 20 28 49 52 43 |n-irc. *| (IRC|
|00000520| 43 6f 6e 74 65 6e 74 48 | 61 6e 64 6c 65 72 29 0d |ContentH|andler).|
|00000530| 20 2a 20 33 2e 20 50 72 | 6f 74 6f 63 6f 6c 20 68 | * 3. Pr|otocol h|
|00000540| 61 6e 64 6c 65 72 20 66 | 6f 72 20 73 75 70 70 6c |andler f|or suppl|
|00000550| 79 69 6e 67 20 61 20 63 | 68 61 6e 6e 65 6c 20 74 |ying a c|hannel t|
|00000560| 6f 20 74 68 65 20 62 72 | 6f 77 73 65 72 20 77 68 |o the br|owser wh|
|00000570| 65 6e 20 61 6e 20 69 72 | 63 3a 2f 2f 0d 20 2a 20 |en an ir|c://. * |
|00000580| 20 20 20 6c 69 6e 6b 20 | 69 73 20 63 6c 69 63 6b | link |is click|
|00000590| 65 64 2e 20 28 49 52 43 | 50 72 6f 74 6f 63 6f 6c |ed. (IRC|Protocol|
|000005a0| 48 61 6e 64 6c 65 72 29 | 0d 20 2a 20 34 2e 20 41 |Handler)|. * 4. A|
|000005b0| 20 28 6e 65 61 72 6c 79 | 20 65 6d 70 74 79 29 20 | (nearly| empty) |
|000005c0| 69 6d 65 70 6c 65 6d 65 | 6e 74 61 74 69 6f 6e 20 |imepleme|ntation |
|000005d0| 6f 66 20 6e 73 49 43 68 | 61 6e 6e 65 6c 20 66 6f |of nsICh|annel fo|
|000005e0| 72 20 74 65 6c 6c 69 6e | 67 20 74 68 65 20 62 72 |r tellin|g the br|
|000005f0| 6f 77 73 65 72 0d 20 2a | 20 20 20 20 74 68 61 74 |owser. *| that|
|00000600| 20 69 72 63 3a 2f 2f 20 | 6c 69 6e 6b 73 20 68 61 | irc:// |links ha|
|00000610| 76 65 20 74 68 65 20 63 | 6f 6e 74 65 6e 74 20 74 |ve the c|ontent t|
|00000620| 79 70 65 20 78 2d 61 70 | 70 6c 69 63 61 74 69 6f |ype x-ap|plicatio|
|00000630| 6e 2d 69 72 63 20 28 42 | 6f 67 75 73 43 68 61 6e |n-irc (B|ogusChan|
|00000640| 6e 65 6c 29 0d 20 2a 2f | 0d 0d 2f 2a 20 63 6f 6d |nel). */|../* com|
|00000650| 70 6f 6e 65 6e 74 73 20 | 64 65 66 69 6e 65 64 20 |ponents |defined |
|00000660| 69 6e 20 74 68 69 73 20 | 66 69 6c 65 20 2a 2f 0d |in this |file */.|
|00000670| 63 6f 6e 73 74 20 43 4c | 49 4e 45 5f 53 45 52 56 |const CL|INE_SERV|
|00000680| 49 43 45 5f 43 4f 4e 54 | 52 41 43 54 49 44 20 3d |ICE_CONT|RACTID =|
|00000690| 0d 20 20 20 20 22 40 6d | 6f 7a 69 6c 6c 61 2e 6f |. "@m|ozilla.o|
|000006a0| 72 67 2f 63 6f 6d 6d 61 | 6e 64 6c 69 6e 65 68 61 |rg/comma|ndlineha|
|000006b0| 6e 64 6c 65 72 2f 67 65 | 6e 65 72 61 6c 2d 73 74 |ndler/ge|neral-st|
|000006c0| 61 72 74 75 70 3b 31 3f | 74 79 70 65 3d 63 68 61 |artup;1?|type=cha|
|000006d0| 74 22 3b 0d 63 6f 6e 73 | 74 20 43 4c 49 4e 45 5f |t";.cons|t CLINE_|
|000006e0| 53 45 52 56 49 43 45 5f | 43 49 44 20 3d 0d 20 20 |SERVICE_|CID =. |
|000006f0| 20 20 43 6f 6d 70 6f 6e | 65 6e 74 73 2e 49 44 28 | Compon|ents.ID(|
|00000700| 22 7b 33 38 61 39 35 35 | 31 34 2d 31 64 64 32 2d |"{38a955|14-1dd2-|
|00000710| 31 31 62 32 2d 39 37 65 | 37 2d 39 64 61 39 35 38 |11b2-97e|7-9da958|
|00000720| 36 34 30 66 32 63 7d 22 | 29 3b 0d 63 6f 6e 73 74 |640f2c}"|);.const|
|00000730| 20 49 52 43 43 4e 54 5f | 48 41 4e 44 4c 45 52 5f | IRCCNT_|HANDLER_|
|00000740| 43 4f 4e 54 52 41 43 54 | 49 44 20 3d 0d 20 20 20 |CONTRACT|ID =. |
|00000750| 20 22 40 6d 6f 7a 69 6c | 6c 61 2e 6f 72 67 2f 75 | "@mozil|la.org/u|
|00000760| 72 69 6c 6f 61 64 65 72 | 2f 63 6f 6e 74 65 6e 74 |riloader|/content|
|00000770| 2d 68 61 6e 64 6c 65 72 | 3b 31 3f 74 79 70 65 3d |-handler|;1?type=|
|00000780| 78 2d 61 70 70 6c 69 63 | 61 74 69 6f 6e 2d 69 72 |x-applic|ation-ir|
|00000790| 63 22 3b 0d 63 6f 6e 73 | 74 20 49 52 43 43 4e 54 |c";.cons|t IRCCNT|
|000007a0| 5f 48 41 4e 44 4c 45 52 | 5f 43 49 44 20 3d 0d 20 |_HANDLER|_CID =. |
|000007b0| 20 20 20 43 6f 6d 70 6f | 6e 65 6e 74 73 2e 49 44 | Compo|nents.ID|
|000007c0| 28 22 7b 39 38 39 31 39 | 61 31 34 2d 31 64 64 31 |("{98919|a14-1dd1|
|000007d0| 2d 31 31 62 32 2d 62 65 | 31 61 2d 62 38 34 33 34 |-11b2-be|1a-b8434|
|000007e0| 34 33 30 37 66 30 61 7d | 22 29 3b 0d 63 6f 6e 73 |4307f0a}|");.cons|
|000007f0| 74 20 49 52 43 50 52 4f | 54 5f 48 41 4e 44 4c 45 |t IRCPRO|T_HANDLE|
|00000800| 52 5f 43 4f 4e 54 52 41 | 43 54 49 44 20 3d 0d 20 |R_CONTRA|CTID =. |
|00000810| 20 20 20 22 40 6d 6f 7a | 69 6c 6c 61 2e 6f 72 67 | "@moz|illa.org|
|00000820| 2f 6e 65 74 77 6f 72 6b | 2f 70 72 6f 74 6f 63 6f |/network|/protoco|
|00000830| 6c 3b 31 3f 6e 61 6d 65 | 3d 69 72 63 22 3b 0d 63 |l;1?name|=irc";.c|
|00000840| 6f 6e 73 74 20 49 52 43 | 50 52 4f 54 5f 48 41 4e |onst IRC|PROT_HAN|
|00000850| 44 4c 45 52 5f 43 49 44 | 20 3d 0d 20 20 20 20 43 |DLER_CID| =. C|
|00000860| 6f 6d 70 6f 6e 65 6e 74 | 73 2e 49 44 28 22 7b 66 |omponent|s.ID("{f|
|00000870| 32 31 63 33 35 66 34 2d | 31 64 64 31 2d 31 31 62 |21c35f4-|1dd1-11b|
|00000880| 32 2d 61 35 30 33 2d 39 | 62 66 38 61 35 33 39 65 |2-a503-9|bf8a539e|
|00000890| 61 33 39 7d 22 29 3b 0d | 0d 2f 2a 20 63 6f 6d 70 |a39}");.|./* comp|
|000008a0| 6f 6e 65 6e 74 73 20 75 | 73 65 64 20 69 6e 20 74 |onents u|sed in t|
|000008b0| 68 69 73 20 66 69 6c 65 | 20 2a 2f 0d 63 6f 6e 73 |his file| */.cons|
|000008c0| 74 20 4d 45 44 49 41 54 | 4f 52 5f 43 4f 4e 54 52 |t MEDIAT|OR_CONTR|
|000008d0| 41 43 54 49 44 20 3d 0d | 20 20 20 20 22 40 6d 6f |ACTID =.| "@mo|
|000008e0| 7a 69 6c 6c 61 2e 6f 72 | 67 2f 72 64 66 2f 64 61 |zilla.or|g/rdf/da|
|000008f0| 74 61 73 6f 75 72 63 65 | 3b 31 3f 6e 61 6d 65 3d |tasource|;1?name=|
|00000900| 77 69 6e 64 6f 77 2d 6d | 65 64 69 61 74 6f 72 22 |window-m|ediator"|
|00000910| 0d 63 6f 6e 73 74 20 53 | 49 4d 50 4c 45 55 52 49 |.const S|IMPLEURI|
|00000920| 5f 43 4f 4e 54 52 41 43 | 54 49 44 20 3d 20 0d 20 |_CONTRAC|TID = . |
|00000930| 20 20 20 22 40 6d 6f 7a | 69 6c 6c 61 2e 6f 72 67 | "@moz|illa.org|
|00000940| 2f 6e 65 74 77 6f 72 6b | 2f 73 69 6d 70 6c 65 2d |/network|/simple-|
|00000950| 75 72 69 3b 31 22 3b 0d | 63 6f 6e 73 74 20 41 53 |uri;1";.|const AS|
|00000960| 53 5f 43 4f 4e 54 52 41 | 43 54 49 44 20 3d 0d 20 |S_CONTRA|CTID =. |
|00000970| 20 20 20 22 40 6d 6f 7a | 69 6c 6c 61 2e 6f 72 67 | "@moz|illa.org|
|00000980| 2f 61 70 70 73 68 65 6c | 6c 2f 61 70 70 53 68 65 |/appshel|l/appShe|
|00000990| 6c 6c 53 65 72 76 69 63 | 65 3b 31 22 3b 0d 0d 2f |llServic|e;1";../|
|000009a0| 2a 20 69 6e 74 65 72 61 | 66 63 65 73 20 75 73 65 |* intera|fces use|
|000009b0| 64 20 69 6e 20 74 68 69 | 73 20 66 69 6c 65 20 2a |d in thi|s file *|
|000009c0| 2f 0d 63 6f 6e 73 74 20 | 6e 73 49 57 69 6e 64 6f |/.const |nsIWindo|
|000009d0| 77 4d 65 64 69 61 74 6f | 72 20 20 3d 20 43 6f 6d |wMediato|r = Com|
|000009e0| 70 6f 6e 65 6e 74 73 2e | 69 6e 74 65 72 66 61 63 |ponents.|interfac|
|000009f0| 65 73 2e 6e 73 49 57 69 | 6e 64 6f 77 4d 65 64 69 |es.nsIWi|ndowMedi|
|00000a00| 61 74 6f 72 3b 0d 63 6f | 6e 73 74 20 6e 73 49 43 |ator;.co|nst nsIC|
|00000a10| 6d 64 4c 69 6e 65 48 61 | 6e 64 6c 65 72 20 20 3d |mdLineHa|ndler =|
|00000a20| 20 43 6f 6d 70 6f 6e 65 | 6e 74 73 2e 69 6e 74 65 | Compone|nts.inte|
|00000a30| 72 66 61 63 65 73 2e 6e | 73 49 43 6d 64 4c 69 6e |rfaces.n|sICmdLin|
|00000a40| 65 48 61 6e 64 6c 65 72 | 3b 0d 63 6f 6e 73 74 20 |eHandler|;.const |
|00000a50| 6e 73 49 43 61 74 65 67 | 6f 72 79 4d 61 6e 61 67 |nsICateg|oryManag|
|00000a60| 65 72 20 3d 20 43 6f 6d | 70 6f 6e 65 6e 74 73 2e |er = Com|ponents.|
|00000a70| 69 6e 74 65 72 66 61 63 | 65 73 2e 6e 73 49 43 61 |interfac|es.nsICa|
|00000a80| 74 65 67 6f 72 79 4d 61 | 6e 61 67 65 72 3b 0d 63 |tegoryMa|nager;.c|
|00000a90| 6f 6e 73 74 20 6e 73 49 | 43 6f 6e 74 65 6e 74 48 |onst nsI|ContentH|
|00000aa0| 61 6e 64 6c 65 72 20 20 | 3d 20 43 6f 6d 70 6f 6e |andler |= Compon|
|00000ab0| 65 6e 74 73 2e 69 6e 74 | 65 72 66 61 63 65 73 2e |ents.int|erfaces.|
|00000ac0| 6e 73 49 43 6f 6e 74 65 | 6e 74 48 61 6e 64 6c 65 |nsIConte|ntHandle|
|00000ad0| 72 3b 0d 63 6f 6e 73 74 | 20 6e 73 49 50 72 6f 74 |r;.const| nsIProt|
|00000ae0| 6f 63 6f 6c 48 61 6e 64 | 6c 65 72 20 3d 20 43 6f |ocolHand|ler = Co|
|00000af0| 6d 70 6f 6e 65 6e 74 73 | 2e 69 6e 74 65 72 66 61 |mponents|.interfa|
|00000b00| 63 65 73 2e 6e 73 49 50 | 72 6f 74 6f 63 6f 6c 48 |ces.nsIP|rotocolH|
|00000b10| 61 6e 64 6c 65 72 3b 0d | 63 6f 6e 73 74 20 6e 73 |andler;.|const ns|
|00000b20| 49 55 52 49 20 20 20 20 | 20 20 20 20 20 20 20 20 |IURI | |
|00000b30| 20 3d 20 43 6f 6d 70 6f | 6e 65 6e 74 73 2e 69 6e | = Compo|nents.in|
|00000b40| 74 65 72 66 61 63 65 73 | 2e 6e 73 49 55 52 49 3b |terfaces|.nsIURI;|
|00000b50| 0d 63 6f 6e 73 74 20 6e | 73 49 43 68 61 6e 6e 65 |.const n|sIChanne|
|00000b60| 6c 20 20 20 20 20 20 20 | 20 20 3d 20 43 6f 6d 70 |l | = Comp|
|00000b70| 6f 6e 65 6e 74 73 2e 69 | 6e 74 65 72 66 61 63 65 |onents.i|nterface|
|00000b80| 73 2e 6e 73 49 43 68 61 | 6e 6e 65 6c 3b 0d 63 6f |s.nsICha|nnel;.co|
|00000b90| 6e 73 74 20 6e 73 49 52 | 65 71 75 65 73 74 20 20 |nst nsIR|equest |
|00000ba0| 20 20 20 20 20 20 20 3d | 20 43 6f 6d 70 6f 6e 65 | =| Compone|
|00000bb0| 6e 74 73 2e 69 6e 74 65 | 72 66 61 63 65 73 2e 6e |nts.inte|rfaces.n|
|00000bc0| 73 49 52 65 71 75 65 73 | 74 3b 0d 63 6f 6e 73 74 |sIReques|t;.const|
|00000bd0| 20 6e 73 49 41 70 70 53 | 68 65 6c 6c 53 65 72 76 | nsIAppS|hellServ|
|00000be0| 69 63 65 20 3d 20 43 6f | 6d 70 6f 6e 65 6e 74 73 |ice = Co|mponents|
|00000bf0| 2e 69 6e 74 65 72 66 61 | 63 65 73 2e 6e 73 49 41 |.interfa|ces.nsIA|
|00000c00| 70 70 53 68 65 6c 6c 53 | 65 72 76 69 63 65 3b 0d |ppShellS|ervice;.|
|00000c10| 63 6f 6e 73 74 20 6e 73 | 49 53 75 70 70 6f 72 74 |const ns|ISupport|
|00000c20| 73 20 20 20 20 20 20 20 | 20 3d 20 43 6f 6d 70 6f |s | = Compo|
|00000c30| 6e 65 6e 74 73 2e 69 6e | 74 65 72 66 61 63 65 73 |nents.in|terfaces|
|00000c40| 2e 6e 73 49 53 75 70 70 | 6f 72 74 73 3b 0d 0d 2f |.nsISupp|orts;../|
|00000c50| 2a 20 43 6f 6d 6d 61 6e | 64 20 4c 69 6e 65 20 68 |* Comman|d Line h|
|00000c60| 61 6e 64 6c 65 72 20 73 | 65 72 76 69 63 65 20 2a |andler s|ervice *|
|00000c70| 2f 0d 66 75 6e 63 74 69 | 6f 6e 20 43 4c 69 6e 65 |/.functi|on CLine|
|00000c80| 53 65 72 76 69 63 65 28 | 29 0d 7b 7d 0d 0d 43 4c |Service(|).{}..CL|
|00000c90| 69 6e 65 53 65 72 76 69 | 63 65 2e 70 72 6f 74 6f |ineServi|ce.proto|
|00000ca0| 74 79 70 65 2e 63 6f 6d | 6d 61 6e 64 4c 69 6e 65 |type.com|mandLine|
|00000cb0| 41 72 67 75 6d 65 6e 74 | 20 3d 20 22 2d 63 68 61 |Argument| = "-cha|
|00000cc0| 74 22 3b 0d 43 4c 69 6e | 65 53 65 72 76 69 63 65 |t";.CLin|eService|
|00000cd0| 2e 70 72 6f 74 6f 74 79 | 70 65 2e 70 72 65 66 4e |.prototy|pe.prefN|
|00000ce0| 61 6d 65 46 6f 72 53 74 | 61 72 74 75 70 20 3d 20 |ameForSt|artup = |
|00000cf0| 22 67 65 6e 65 72 61 6c | 2e 73 74 61 72 74 75 70 |"general|.startup|
|00000d00| 2e 63 68 61 74 22 3b 0d | 43 4c 69 6e 65 53 65 72 |.chat";.|CLineSer|
|00000d10| 76 69 63 65 2e 70 72 6f | 74 6f 74 79 70 65 2e 63 |vice.pro|totype.c|
|00000d20| 68 72 6f 6d 65 55 72 6c | 46 6f 72 54 61 73 6b 3d |hromeUrl|ForTask=|
|00000d30| 22 63 68 72 6f 6d 65 3a | 2f 2f 63 68 61 74 7a 69 |"chrome:|//chatzi|
|00000d40| 6c 6c 61 2f 63 6f 6e 74 | 65 6e 74 22 3b 0d 43 4c |lla/cont|ent";.CL|
|00000d50| 69 6e 65 53 65 72 76 69 | 63 65 2e 70 72 6f 74 6f |ineServi|ce.proto|
|00000d60| 74 79 70 65 2e 68 65 6c | 70 54 65 78 74 20 3d 20 |type.hel|pText = |
|00000d70| 22 53 74 61 72 74 20 77 | 69 74 68 20 61 6e 20 49 |"Start w|ith an I|
|00000d80| 52 43 20 63 68 61 74 20 | 63 6c 69 65 6e 74 22 3b |RC chat |client";|
|00000d90| 0d 43 4c 69 6e 65 53 65 | 72 76 69 63 65 2e 70 72 |.CLineSe|rvice.pr|
|00000da0| 6f 74 6f 74 79 70 65 2e | 68 61 6e 64 6c 65 73 41 |ototype.|handlesA|
|00000db0| 72 67 73 3d 66 61 6c 73 | 65 3b 0d 43 4c 69 6e 65 |rgs=fals|e;.CLine|
|00000dc0| 53 65 72 76 69 63 65 2e | 70 72 6f 74 6f 74 79 70 |Service.|prototyp|
|00000dd0| 65 2e 64 65 66 61 75 6c | 74 41 72 67 73 20 3d 22 |e.defaul|tArgs ="|
|00000de0| 22 3b 0d 43 4c 69 6e 65 | 53 65 72 76 69 63 65 2e |";.CLine|Service.|
|00000df0| 70 72 6f 74 6f 74 79 70 | 65 2e 6f 70 65 6e 57 69 |prototyp|e.openWi|
|00000e00| 6e 64 6f 77 57 69 74 68 | 41 72 67 73 3d 66 61 6c |ndowWith|Args=fal|
|00000e10| 73 65 3b 0d 0d 2f 2a 20 | 66 61 63 74 6f 72 79 20 |se;../* |factory |
|00000e20| 66 6f 72 20 63 6f 6d 6d | 61 6e 64 20 6c 69 6e 65 |for comm|and line|
|00000e30| 20 68 61 6e 64 6c 65 72 | 20 73 65 72 76 69 63 65 | handler| service|
|00000e40| 20 28 43 4c 69 6e 65 53 | 65 72 76 69 63 65 29 20 | (CLineS|ervice) |
|00000e50| 2a 2f 0d 76 61 72 20 43 | 4c 69 6e 65 46 61 63 74 |*/.var C|LineFact|
|00000e60| 6f 72 79 20 3d 20 6e 65 | 77 20 4f 62 6a 65 63 74 |ory = ne|w Object|
|00000e70| 28 29 3b 0d 0d 43 4c 69 | 6e 65 46 61 63 74 6f 72 |();..CLi|neFactor|
|00000e80| 79 2e 63 72 65 61 74 65 | 49 6e 73 74 61 6e 63 65 |y.create|Instance|
|00000e90| 20 3d 0d 66 75 6e 63 74 | 69 6f 6e 20 28 6f 75 74 | =.funct|ion (out|
|00000ea0| 65 72 2c 20 69 69 64 29 | 20 7b 0d 20 20 20 20 69 |er, iid)| {. i|
|00000eb0| 66 20 28 6f 75 74 65 72 | 20 21 3d 20 6e 75 6c 6c |f (outer| != null|
|00000ec0| 29 0d 20 20 20 20 20 20 | 20 20 74 68 72 6f 77 20 |). | throw |
|00000ed0| 43 6f 6d 70 6f 6e 65 6e | 74 73 2e 72 65 73 75 6c |Componen|ts.resul|
|00000ee0| 74 73 2e 4e 53 5f 45 52 | 52 4f 52 5f 4e 4f 5f 41 |ts.NS_ER|ROR_NO_A|
|00000ef0| 47 47 52 45 47 41 54 49 | 4f 4e 3b 0d 0d 20 20 20 |GGREGATI|ON;.. |
|00000f00| 20 69 66 20 28 21 69 69 | 64 2e 65 71 75 61 6c 73 | if (!ii|d.equals|
|00000f10| 28 6e 73 49 43 6d 64 4c | 69 6e 65 48 61 6e 64 6c |(nsICmdL|ineHandl|
|00000f20| 65 72 29 20 26 26 20 21 | 69 69 64 2e 65 71 75 61 |er) && !|iid.equa|
|00000f30| 6c 73 28 6e 73 49 53 75 | 70 70 6f 72 74 73 29 29 |ls(nsISu|pports))|
|00000f40| 0d 20 20 20 20 20 20 20 | 20 74 68 72 6f 77 20 43 |. | throw C|
|00000f50| 6f 6d 70 6f 6e 65 6e 74 | 73 2e 72 65 73 75 6c 74 |omponent|s.result|
|00000f60| 73 2e 4e 53 5f 45 52 52 | 4f 52 5f 49 4e 56 41 4c |s.NS_ERR|OR_INVAL|
|00000f70| 49 44 5f 41 52 47 3b 0d | 0d 20 20 20 20 72 65 74 |ID_ARG;.|. ret|
|00000f80| 75 72 6e 20 6e 65 77 20 | 43 4c 69 6e 65 53 65 72 |urn new |CLineSer|
|00000f90| 76 69 63 65 28 29 3b 0d | 7d 0d 0d 2f 2a 20 78 2d |vice();.|}../* x-|
|00000fa0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2d 69 72 63 20 |applicat|ion-irc |
|00000fb0| 63 6f 6e 74 65 6e 74 20 | 68 61 6e 64 6c 65 72 20 |content |handler |
|00000fc0| 2a 2f 0d 66 75 6e 63 74 | 69 6f 6e 20 49 52 43 43 |*/.funct|ion IRCC|
|00000fd0| 6f 6e 74 65 6e 74 48 61 | 6e 64 6c 65 72 20 28 29 |ontentHa|ndler ()|
|00000fe0| 0d 7b 7d 0d 0d 49 52 43 | 43 6f 6e 74 65 6e 74 48 |.{}..IRC|ContentH|
|00000ff0| 61 6e 64 6c 65 72 2e 70 | 72 6f 74 6f 74 79 70 65 |andler.p|rototype|
|00001000| 2e 51 75 65 72 79 49 6e | 74 65 72 66 61 63 65 20 |.QueryIn|terface |
|00001010| 3d 0d 66 75 6e 63 74 69 | 6f 6e 20 28 69 69 64 29 |=.functi|on (iid)|
|00001020| 20 7b 0d 0d 20 20 20 20 | 69 66 20 28 21 69 69 64 | {.. |if (!iid|
|00001030| 2e 65 71 75 61 6c 73 28 | 6e 73 49 43 6f 6e 74 65 |.equals(|nsIConte|
|00001040| 6e 74 48 61 6e 64 6c 65 | 72 29 29 0d 20 20 20 20 |ntHandle|r)). |
|00001050| 20 20 20 20 74 68 72 6f | 77 20 43 6f 6d 70 6f 6e | thro|w Compon|
|00001060| 65 6e 74 73 2e 72 65 73 | 75 6c 74 73 2e 4e 53 5f |ents.res|ults.NS_|
|00001070| 45 52 52 4f 52 5f 4e 4f | 5f 49 4e 54 45 52 46 41 |ERROR_NO|_INTERFA|
|00001080| 43 45 3b 0d 0d 20 20 20 | 20 72 65 74 75 72 6e 20 |CE;.. | return |
|00001090| 74 68 69 73 3b 0d 7d 0d | 0d 49 52 43 43 6f 6e 74 |this;.}.|.IRCCont|
|000010a0| 65 6e 74 48 61 6e 64 6c | 65 72 2e 70 72 6f 74 6f |entHandl|er.proto|
|000010b0| 74 79 70 65 2e 68 61 6e | 64 6c 65 43 6f 6e 74 65 |type.han|dleConte|
|000010c0| 6e 74 20 3d 0d 66 75 6e | 63 74 69 6f 6e 20 28 61 |nt =.fun|ction (a|
|000010d0| 43 6f 6e 74 65 6e 74 54 | 79 70 65 2c 20 61 43 6f |ContentT|ype, aCo|
|000010e0| 6d 6d 61 6e 64 2c 20 61 | 57 69 6e 64 6f 77 54 61 |mmand, a|WindowTa|
|000010f0| 72 67 65 74 2c 20 61 53 | 6f 75 72 63 65 43 6f 6e |rget, aS|ourceCon|
|00001100| 74 65 78 74 2c 20 61 52 | 65 71 75 65 73 74 29 0d |text, aR|equest).|
|00001110| 7b 0d 20 20 20 20 76 61 | 72 20 65 3b 0d 20 20 20 |{. va|r e;. |
|00001120| 20 76 61 72 20 63 68 61 | 6e 6e 65 6c 20 3d 20 61 | var cha|nnel = a|
|00001130| 52 65 71 75 65 73 74 2e | 51 75 65 72 79 49 6e 74 |Request.|QueryInt|
|00001140| 65 72 66 61 63 65 28 6e | 73 49 43 68 61 6e 6e 65 |erface(n|sIChanne|
|00001150| 6c 29 3b 0d 0d 20 20 20 | 20 64 75 6d 70 20 28 22 |l);.. | dump ("|
|00001160| 69 72 63 4c 6f 61 64 65 | 72 2e 68 61 6e 64 6c 65 |ircLoade|r.handle|
|00001170| 43 6f 6e 74 65 6e 74 20 | 28 22 20 2b 20 61 43 6f |Content |(" + aCo|
|00001180| 6e 74 65 6e 74 54 79 70 | 65 20 2b 20 22 2c 20 22 |ntentTyp|e + ", "|
|00001190| 20 2b 0d 20 20 20 20 20 | 20 20 20 20 20 61 43 6f | +. | aCo|
|000011a0| 6d 6d 61 6e 64 20 2b 20 | 22 2c 20 22 20 2b 20 61 |mmand + |", " + a|
|000011b0| 57 69 6e 64 6f 77 54 61 | 72 67 65 74 20 2b 20 22 |WindowTa|rget + "|
|000011c0| 2c 20 22 20 2b 20 61 53 | 6f 75 72 63 65 43 6f 6e |, " + aS|ourceCon|
|000011d0| 74 65 78 74 20 2b 20 22 | 2c 20 22 20 2b 0d 20 20 |text + "|, " +. |
|000011e0| 20 20 20 20 20 20 20 20 | 63 68 61 6e 6e 65 6c 2e | |channel.|
|000011f0| 55 52 49 2e 73 70 65 63 | 20 2b 20 22 29 5c 6e 22 |URI.spec| + ")\n"|
|00001200| 29 3b 0d 20 20 20 20 0d | 20 20 20 20 76 61 72 20 |);. .| var |
|00001210| 77 69 6e 64 6f 77 4d 61 | 6e 61 67 65 72 20 3d 0d |windowMa|nager =.|
|00001220| 20 20 20 20 20 20 20 20 | 43 6f 6d 70 6f 6e 65 6e | |Componen|
|00001230| 74 73 2e 63 6c 61 73 73 | 65 73 5b 4d 45 44 49 41 |ts.class|es[MEDIA|
|00001240| 54 4f 52 5f 43 4f 4e 54 | 52 41 43 54 49 44 5d 2e |TOR_CONT|RACTID].|
|00001250| 67 65 74 53 65 72 76 69 | 63 65 28 6e 73 49 57 69 |getServi|ce(nsIWi|
|00001260| 6e 64 6f 77 4d 65 64 69 | 61 74 6f 72 29 3b 0d 0d |ndowMedi|ator);..|
|00001270| 20 20 20 20 76 61 72 20 | 77 20 3d 20 77 69 6e 64 | var |w = wind|
|00001280| 6f 77 4d 61 6e 61 67 65 | 72 2e 67 65 74 4d 6f 73 |owManage|r.getMos|
|00001290| 74 52 65 63 65 6e 74 57 | 69 6e 64 6f 77 28 22 69 |tRecentW|indow("i|
|000012a0| 72 63 3a 63 68 61 74 7a | 69 6c 6c 61 22 29 3b 0d |rc:chatz|illa");.|
|000012b0| 0d 20 20 20 20 69 66 20 | 28 77 29 0d 20 20 20 20 |. if |(w). |
|000012c0| 7b 0d 20 20 20 20 20 20 | 20 20 77 2e 66 6f 63 75 |{. | w.focu|
|000012d0| 73 28 29 3b 0d 20 20 20 | 20 20 20 20 20 77 2e 67 |s();. | w.g|
|000012e0| 6f 74 6f 49 52 43 55 52 | 4c 28 63 68 61 6e 6e 65 |otoIRCUR|L(channe|
|000012f0| 6c 2e 55 52 49 2e 73 70 | 65 63 29 3b 0d 20 20 20 |l.URI.sp|ec);. |
|00001300| 20 7d 0d 20 20 20 20 65 | 6c 73 65 0d 20 20 20 20 | }. e|lse. |
|00001310| 7b 0d 20 20 20 20 20 20 | 20 20 76 61 72 20 61 73 |{. | var as|
|00001320| 73 20 3d 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |s =. | |
|00001330| 43 6f 6d 70 6f 6e 65 6e | 74 73 2e 63 6c 61 73 73 |Componen|ts.class|
|00001340| 65 73 5b 41 53 53 5f 43 | 4f 4e 54 52 41 43 54 49 |es[ASS_C|ONTRACTI|
|00001350| 44 5d 2e 67 65 74 53 65 | 72 76 69 63 65 28 6e 73 |D].getSe|rvice(ns|
|00001360| 49 41 70 70 53 68 65 6c | 6c 53 65 72 76 69 63 65 |IAppShel|lService|
|00001370| 29 3b 0d 20 20 20 20 20 | 20 20 20 77 20 3d 20 61 |);. | w = a|
|00001380| 73 73 2e 67 65 74 48 69 | 64 64 65 6e 44 4f 4d 57 |ss.getHi|ddenDOMW|
|00001390| 69 6e 64 6f 77 28 29 3b | 0d 20 20 20 20 20 20 20 |indow();|. |
|000013a0| 20 77 2e 6f 70 65 6e 44 | 69 61 6c 6f 67 28 22 63 | w.openD|ialog("c|
|000013b0| 68 72 6f 6d 65 3a 2f 2f | 63 68 61 74 7a 69 6c 6c |hrome://|chatzill|
|000013c0| 61 2f 63 6f 6e 74 65 6e | 74 2f 63 68 61 74 7a 69 |a/conten|t/chatzi|
|000013d0| 6c 6c 61 2e 78 75 6c 3f | 22 20 2b 20 0d 20 20 20 |lla.xul?|" + . |
|000013e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000013f0| 20 20 63 68 61 6e 6e 65 | 6c 2e 55 52 49 2e 73 70 | channe|l.URI.sp|
|00001400| 65 63 2c 20 22 5f 62 6c | 61 6e 6b 22 2c 0d 20 20 |ec, "_bl|ank",. |
|00001410| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001420| 20 20 20 22 63 68 72 6f | 6d 65 2c 6d 65 6e 75 62 | "chro|me,menub|
|00001430| 61 72 2c 74 6f 6f 6c 62 | 61 72 2c 72 65 73 69 7a |ar,toolb|ar,resiz|
|00001440| 61 62 6c 65 22 29 3b 0d | 20 20 20 20 7d 0d 20 20 |able");.| }. |
|00001450| 20 20 0d 7d 0d 0d 2f 2a | 20 63 6f 6e 74 65 6e 74 | .}../*| content|
|00001460| 20 68 61 6e 64 6c 65 72 | 20 66 61 63 74 6f 72 79 | handler| factory|
|00001470| 20 6f 62 6a 65 63 74 20 | 28 49 52 43 43 6f 6e 74 | object |(IRCCont|
|00001480| 65 6e 74 48 61 6e 64 6c | 65 72 29 20 2a 2f 0d 76 |entHandl|er) */.v|
|00001490| 61 72 20 49 52 43 43 6f | 6e 74 65 6e 74 48 61 6e |ar IRCCo|ntentHan|
|000014a0| 64 6c 65 72 46 61 63 74 | 6f 72 79 20 3d 20 6e 65 |dlerFact|ory = ne|
|000014b0| 77 20 4f 62 6a 65 63 74 | 28 29 3b 0d 0d 49 52 43 |w Object|();..IRC|
|000014c0| 43 6f 6e 74 65 6e 74 48 | 61 6e 64 6c 65 72 46 61 |ContentH|andlerFa|
|000014d0| 63 74 6f 72 79 2e 63 72 | 65 61 74 65 49 6e 73 74 |ctory.cr|eateInst|
|000014e0| 61 6e 63 65 20 3d 0d 66 | 75 6e 63 74 69 6f 6e 20 |ance =.f|unction |
|000014f0| 28 6f 75 74 65 72 2c 20 | 69 69 64 29 20 7b 0d 20 |(outer, |iid) {. |
|00001500| 20 20 20 69 66 20 28 6f | 75 74 65 72 20 21 3d 20 | if (o|uter != |
|00001510| 6e 75 6c 6c 29 0d 20 20 | 20 20 20 20 20 20 74 68 |null). | th|
|00001520| 72 6f 77 20 43 6f 6d 70 | 6f 6e 65 6e 74 73 2e 72 |row Comp|onents.r|
|00001530| 65 73 75 6c 74 73 2e 4e | 53 5f 45 52 52 4f 52 5f |esults.N|S_ERROR_|
|00001540| 4e 4f 5f 41 47 47 52 45 | 47 41 54 49 4f 4e 3b 0d |NO_AGGRE|GATION;.|
|00001550| 0d 20 20 20 20 69 66 20 | 28 21 69 69 64 2e 65 71 |. if |(!iid.eq|
|00001560| 75 61 6c 73 28 6e 73 49 | 43 6f 6e 74 65 6e 74 48 |uals(nsI|ContentH|
|00001570| 61 6e 64 6c 65 72 29 20 | 26 26 20 21 69 69 64 2e |andler) |&& !iid.|
|00001580| 65 71 75 61 6c 73 28 6e | 73 49 53 75 70 70 6f 72 |equals(n|sISuppor|
|00001590| 74 73 29 29 0d 20 20 20 | 20 20 20 20 20 74 68 72 |ts)). | thr|
|000015a0| 6f 77 20 43 6f 6d 70 6f | 6e 65 6e 74 73 2e 72 65 |ow Compo|nents.re|
|000015b0| 73 75 6c 74 73 2e 4e 53 | 5f 45 52 52 4f 52 5f 49 |sults.NS|_ERROR_I|
|000015c0| 4e 56 41 4c 49 44 5f 41 | 52 47 3b 0d 0d 20 20 20 |NVALID_A|RG;.. |
|000015d0| 20 72 65 74 75 72 6e 20 | 6e 65 77 20 49 52 43 43 | return |new IRCC|
|000015e0| 6f 6e 74 65 6e 74 48 61 | 6e 64 6c 65 72 28 29 3b |ontentHa|ndler();|
|000015f0| 0d 7d 0d 0d 2f 2a 20 69 | 72 63 20 70 72 6f 74 6f |.}../* i|rc proto|
|00001600| 63 6f 6c 20 68 61 6e 64 | 6c 65 72 20 63 6f 6d 70 |col hand|ler comp|
|00001610| 6f 6e 65 6e 74 20 2a 2f | 0d 66 75 6e 63 74 69 6f |onent */|.functio|
|00001620| 6e 20 49 52 43 50 72 6f | 74 6f 63 6f 6c 48 61 6e |n IRCPro|tocolHan|
|00001630| 64 6c 65 72 28 29 0d 7b | 0d 7d 0d 0d 49 52 43 50 |dler().{|.}..IRCP|
|00001640| 72 6f 74 6f 63 6f 6c 48 | 61 6e 64 6c 65 72 2e 70 |rotocolH|andler.p|
|00001650| 72 6f 74 6f 74 79 70 65 | 2e 73 63 68 65 6d 65 20 |rototype|.scheme |
|00001660| 3d 20 22 69 72 63 22 3b | 0d 49 52 43 50 72 6f 74 |= "irc";|.IRCProt|
|00001670| 6f 63 6f 6c 48 61 6e 64 | 6c 65 72 2e 70 72 6f 74 |ocolHand|ler.prot|
|00001680| 6f 74 79 70 65 2e 64 65 | 66 61 75 6c 74 50 6f 72 |otype.de|faultPor|
|00001690| 74 20 3d 20 36 36 36 37 | 3b 0d 0d 49 52 43 50 72 |t = 6667|;..IRCPr|
|000016a0| 6f 74 6f 63 6f 6c 48 61 | 6e 64 6c 65 72 2e 70 72 |otocolHa|ndler.pr|
|000016b0| 6f 74 6f 74 79 70 65 2e | 6e 65 77 55 52 49 20 3d |ototype.|newURI =|
|000016c0| 0d 66 75 6e 63 74 69 6f | 6e 20 28 61 53 70 65 63 |.functio|n (aSpec|
|000016d0| 2c 20 61 42 61 73 65 55 | 52 49 29 0d 7b 0d 20 20 |, aBaseU|RI).{. |
|000016e0| 20 20 69 66 20 28 61 42 | 61 73 65 55 52 49 29 0d | if (aB|aseURI).|
|000016f0| 20 20 20 20 7b 0d 20 20 | 20 20 20 20 20 20 64 75 | {. | du|
|00001700| 6d 70 20 28 22 2d 2a 2d | 20 69 72 63 48 61 6e 64 |mp ("-*-| ircHand|
|00001710| 6c 65 72 3a 20 61 42 61 | 73 65 55 52 49 20 70 61 |ler: aBa|seURI pa|
|00001720| 73 73 65 64 20 74 6f 20 | 6e 65 77 55 52 49 2c 20 |ssed to |newURI, |
|00001730| 62 61 69 6c 69 6e 67 2e | 5c 6e 22 29 3b 0d 20 20 |bailing.|\n");. |
|00001740| 20 20 20 20 20 20 72 65 | 74 75 72 6e 20 6e 75 6c | re|turn nul|
|00001750| 6c 3b 0d 20 20 20 20 7d | 0d 20 20 20 20 0d 20 20 |l;. }|. . |
|00001760| 20 20 76 61 72 20 75 72 | 69 20 3d 20 43 6f 6d 70 | var ur|i = Comp|
|00001770| 6f 6e 65 6e 74 73 2e 63 | 6c 61 73 73 65 73 5b 53 |onents.c|lasses[S|
|00001780| 49 4d 50 4c 45 55 52 49 | 5f 43 4f 4e 54 52 41 43 |IMPLEURI|_CONTRAC|
|00001790| 54 49 44 5d 2e 63 72 65 | 61 74 65 49 6e 73 74 61 |TID].cre|ateInsta|
|000017a0| 6e 63 65 28 6e 73 49 55 | 52 49 29 3b 0d 20 20 20 |nce(nsIU|RI);. |
|000017b0| 20 75 72 69 2e 73 70 65 | 63 20 3d 20 61 53 70 65 | uri.spe|c = aSpe|
|000017c0| 63 3b 0d 20 20 20 20 0d | 20 20 20 20 72 65 74 75 |c;. .| retu|
|000017d0| 72 6e 20 75 72 69 3b 0d | 7d 0d 0d 49 52 43 50 72 |rn uri;.|}..IRCPr|
|000017e0| 6f 74 6f 63 6f 6c 48 61 | 6e 64 6c 65 72 2e 70 72 |otocolHa|ndler.pr|
|000017f0| 6f 74 6f 74 79 70 65 2e | 6e 65 77 43 68 61 6e 6e |ototype.|newChann|
|00001800| 65 6c 20 3d 0d 66 75 6e | 63 74 69 6f 6e 20 28 61 |el =.fun|ction (a|
|00001810| 55 52 49 29 0d 7b 0d 20 | 20 20 20 72 65 74 75 72 |URI).{. | retur|
|00001820| 6e 20 6e 65 77 20 42 6f | 67 75 73 43 68 61 6e 6e |n new Bo|gusChann|
|00001830| 65 6c 20 28 61 55 52 49 | 29 3b 0d 7d 0d 0d 2f 2a |el (aURI|);.}../*|
|00001840| 20 70 72 6f 74 6f 63 6f | 6c 20 68 61 6e 64 6c 65 | protoco|l handle|
|00001850| 72 20 66 61 63 74 6f 72 | 79 20 6f 62 6a 65 63 74 |r factor|y object|
|00001860| 20 28 49 52 43 50 72 6f | 74 6f 63 6f 6c 48 61 6e | (IRCPro|tocolHan|
|00001870| 64 6c 65 72 29 20 2a 2f | 0d 76 61 72 20 49 52 43 |dler) */|.var IRC|
|00001880| 50 72 6f 74 6f 63 6f 6c | 48 61 6e 64 6c 65 72 46 |Protocol|HandlerF|
|00001890| 61 63 74 6f 72 79 20 3d | 20 6e 65 77 20 4f 62 6a |actory =| new Obj|
|000018a0| 65 63 74 28 29 3b 0d 0d | 49 52 43 50 72 6f 74 6f |ect();..|IRCProto|
|000018b0| 63 6f 6c 48 61 6e 64 6c | 65 72 46 61 63 74 6f 72 |colHandl|erFactor|
|000018c0| 79 2e 63 72 65 61 74 65 | 49 6e 73 74 61 6e 63 65 |y.create|Instance|
|000018d0| 20 3d 0d 66 75 6e 63 74 | 69 6f 6e 20 28 6f 75 74 | =.funct|ion (out|
|000018e0| 65 72 2c 20 69 69 64 29 | 20 7b 0d 20 20 20 20 69 |er, iid)| {. i|
|000018f0| 66 20 28 6f 75 74 65 72 | 20 21 3d 20 6e 75 6c 6c |f (outer| != null|
|00001900| 29 0d 20 20 20 20 20 20 | 20 20 74 68 72 6f 77 20 |). | throw |
|00001910| 43 6f 6d 70 6f 6e 65 6e | 74 73 2e 72 65 73 75 6c |Componen|ts.resul|
|00001920| 74 73 2e 4e 53 5f 45 52 | 52 4f 52 5f 4e 4f 5f 41 |ts.NS_ER|ROR_NO_A|
|00001930| 47 47 52 45 47 41 54 49 | 4f 4e 3b 0d 0d 20 20 20 |GGREGATI|ON;.. |
|00001940| 20 69 66 20 28 21 69 69 | 64 2e 65 71 75 61 6c 73 | if (!ii|d.equals|
|00001950| 28 6e 73 49 50 72 6f 74 | 6f 63 6f 6c 48 61 6e 64 |(nsIProt|ocolHand|
|00001960| 6c 65 72 29 20 26 26 20 | 21 69 69 64 2e 65 71 75 |ler) && |!iid.equ|
|00001970| 61 6c 73 28 6e 73 49 53 | 75 70 70 6f 72 74 73 29 |als(nsIS|upports)|
|00001980| 29 0d 20 20 20 20 20 20 | 20 20 74 68 72 6f 77 20 |). | throw |
|00001990| 43 6f 6d 70 6f 6e 65 6e | 74 73 2e 72 65 73 75 6c |Componen|ts.resul|
|000019a0| 74 73 2e 4e 53 5f 45 52 | 52 4f 52 5f 49 4e 56 41 |ts.NS_ER|ROR_INVA|
|000019b0| 4c 49 44 5f 41 52 47 3b | 0d 0d 20 20 20 20 72 65 |LID_ARG;|.. re|
|000019c0| 74 75 72 6e 20 6e 65 77 | 20 49 52 43 50 72 6f 74 |turn new| IRCProt|
|000019d0| 6f 63 6f 6c 48 61 6e 64 | 6c 65 72 28 29 3b 0d 7d |ocolHand|ler();.}|
|000019e0| 0d 0d 2f 2a 20 62 6f 67 | 75 73 20 49 52 43 20 63 |../* bog|us IRC c|
|000019f0| 68 61 6e 6e 65 6c 20 75 | 73 65 64 20 62 79 20 74 |hannel u|sed by t|
|00001a00| 68 65 20 49 52 43 50 72 | 6f 74 6f 63 6f 6c 48 61 |he IRCPr|otocolHa|
|00001a10| 6e 64 6c 65 72 20 2a 2f | 0d 66 75 6e 63 74 69 6f |ndler */|.functio|
|00001a20| 6e 20 42 6f 67 75 73 43 | 68 61 6e 6e 65 6c 20 28 |n BogusC|hannel (|
|00001a30| 61 55 52 49 29 0d 7b 0d | 20 20 20 20 74 68 69 73 |aURI).{.| this|
|00001a40| 2e 55 52 49 20 3d 20 61 | 55 52 49 3b 0d 20 20 20 |.URI = a|URI;. |
|00001a50| 20 74 68 69 73 2e 6f 72 | 69 67 69 6e 61 6c 55 52 | this.or|iginalUR|
|00001a60| 49 20 3d 20 61 55 52 49 | 3b 0d 7d 0d 0d 42 6f 67 |I = aURI|;.}..Bog|
|00001a70| 75 73 43 68 61 6e 6e 65 | 6c 2e 70 72 6f 74 6f 74 |usChanne|l.protot|
|00001a80| 79 70 65 2e 51 75 65 72 | 79 49 6e 74 65 72 66 61 |ype.Quer|yInterfa|
|00001a90| 63 65 20 3d 0d 66 75 6e | 63 74 69 6f 6e 20 28 69 |ce =.fun|ction (i|
|00001aa0| 69 64 29 20 7b 0d 0d 20 | 20 20 20 69 66 20 28 21 |id) {.. | if (!|
|00001ab0| 69 69 64 2e 65 71 75 61 | 6c 73 28 6e 73 49 43 68 |iid.equa|ls(nsICh|
|00001ac0| 61 6e 6e 65 6c 29 20 26 | 26 20 21 69 69 64 2e 65 |annel) &|& !iid.e|
|00001ad0| 71 75 61 6c 73 28 6e 73 | 49 52 65 71 75 65 73 74 |quals(ns|IRequest|
|00001ae0| 29 20 26 26 0d 20 20 20 | 20 20 20 20 20 21 69 69 |) &&. | !ii|
|00001af0| 64 2e 65 71 75 61 6c 73 | 28 6e 73 49 53 75 70 70 |d.equals|(nsISupp|
|00001b00| 6f 72 74 73 29 29 0d 20 | 20 20 20 20 20 20 20 74 |orts)). | t|
|00001b10| 68 72 6f 77 20 43 6f 6d | 70 6f 6e 65 6e 74 73 2e |hrow Com|ponents.|
|00001b20| 72 65 73 75 6c 74 73 2e | 4e 53 5f 45 52 52 4f 52 |results.|NS_ERROR|
|00001b30| 5f 4e 4f 5f 49 4e 54 45 | 52 46 41 43 45 3b 0d 0d |_NO_INTE|RFACE;..|
|00001b40| 20 20 20 20 72 65 74 75 | 72 6e 20 74 68 69 73 3b | retu|rn this;|
|00001b50| 0d 7d 0d 0d 2f 2a 20 6e | 73 49 43 68 61 6e 6e 65 |.}../* n|sIChanne|
|00001b60| 6c 20 2a 2f 0d 42 6f 67 | 75 73 43 68 61 6e 6e 65 |l */.Bog|usChanne|
|00001b70| 6c 2e 70 72 6f 74 6f 74 | 79 70 65 2e 6c 6f 61 64 |l.protot|ype.load|
|00001b80| 41 74 74 72 69 62 75 74 | 65 73 20 3d 20 6e 75 6c |Attribut|es = nul|
|00001b90| 6c 3b 0d 42 6f 67 75 73 | 43 68 61 6e 6e 65 6c 2e |l;.Bogus|Channel.|
|00001ba0| 70 72 6f 74 6f 74 79 70 | 65 2e 63 6f 6e 74 65 6e |prototyp|e.conten|
|00001bb0| 74 54 79 70 65 20 3d 20 | 22 78 2d 61 70 70 6c 69 |tType = |"x-appli|
|00001bc0| 63 61 74 69 6f 6e 2d 69 | 72 63 22 3b 0d 42 6f 67 |cation-i|rc";.Bog|
|00001bd0| 75 73 43 68 61 6e 6e 65 | 6c 2e 70 72 6f 74 6f 74 |usChanne|l.protot|
|00001be0| 79 70 65 2e 63 6f 6e 74 | 65 6e 74 4c 65 6e 67 74 |ype.cont|entLengt|
|00001bf0| 68 20 3d 20 30 3b 0d 42 | 6f 67 75 73 43 68 61 6e |h = 0;.B|ogusChan|
|00001c00| 6e 65 6c 2e 70 72 6f 74 | 6f 74 79 70 65 2e 6f 77 |nel.prot|otype.ow|
|00001c10| 6e 65 72 20 3d 20 6e 75 | 6c 6c 3b 0d 42 6f 67 75 |ner = nu|ll;.Bogu|
|00001c20| 73 43 68 61 6e 6e 65 6c | 2e 70 72 6f 74 6f 74 79 |sChannel|.prototy|
|00001c30| 70 65 2e 6c 6f 61 64 47 | 72 6f 75 70 20 3d 20 6e |pe.loadG|roup = n|
|00001c40| 75 6c 6c 3b 0d 42 6f 67 | 75 73 43 68 61 6e 6e 65 |ull;.Bog|usChanne|
|00001c50| 6c 2e 70 72 6f 74 6f 74 | 79 70 65 2e 6e 6f 74 69 |l.protot|ype.noti|
|00001c60| 66 69 63 61 74 69 6f 6e | 43 61 6c 6c 62 61 63 6b |fication|Callback|
|00001c70| 73 20 3d 20 6e 75 6c 6c | 3b 0d 42 6f 67 75 73 43 |s = null|;.BogusC|
|00001c80| 68 61 6e 6e 65 6c 2e 70 | 72 6f 74 6f 74 79 70 65 |hannel.p|rototype|
|00001c90| 2e 73 65 63 75 72 69 74 | 79 49 6e 66 6f 20 3d 20 |.securit|yInfo = |
|00001ca0| 6e 75 6c 6c 3b 0d 0d 42 | 6f 67 75 73 43 68 61 6e |null;..B|ogusChan|
|00001cb0| 6e 65 6c 2e 70 72 6f 74 | 6f 74 79 70 65 2e 6f 70 |nel.prot|otype.op|
|00001cc0| 65 6e 20 3d 0d 42 6f 67 | 75 73 43 68 61 6e 6e 65 |en =.Bog|usChanne|
|00001cd0| 6c 2e 70 72 6f 74 6f 74 | 79 70 65 2e 61 73 79 6e |l.protot|ype.asyn|
|00001ce0| 63 4f 70 65 6e 20 3d 0d | 66 75 6e 63 74 69 6f 6e |cOpen =.|function|
|00001cf0| 20 28 29 0d 7b 0d 20 20 | 20 20 74 68 72 6f 77 20 | ().{. | throw |
|00001d00| 43 6f 6d 70 6f 6e 65 6e | 74 73 2e 72 65 73 75 6c |Componen|ts.resul|
|00001d10| 74 73 2e 4e 53 5f 45 52 | 52 4f 52 5f 4e 4f 54 5f |ts.NS_ER|ROR_NOT_|
|00001d20| 49 4d 50 4c 45 4d 45 4e | 54 45 44 3b 0d 7d 0d 0d |IMPLEMEN|TED;.}..|
|00001d30| 42 6f 67 75 73 43 68 61 | 6e 6e 65 6c 2e 70 72 6f |BogusCha|nnel.pro|
|00001d40| 74 6f 74 79 70 65 2e 61 | 73 79 6e 63 4f 70 65 6e |totype.a|syncOpen|
|00001d50| 20 3d 0d 66 75 6e 63 74 | 69 6f 6e 20 28 6f 62 73 | =.funct|ion (obs|
|00001d60| 65 72 76 65 72 2c 20 63 | 74 78 74 29 0d 7b 0d 20 |erver, c|txt).{. |
|00001d70| 20 20 20 6f 62 73 65 72 | 76 65 72 2e 6f 6e 53 74 | obser|ver.onSt|
|00001d80| 61 72 74 52 65 71 75 65 | 73 74 20 28 74 68 69 73 |artReque|st (this|
|00001d90| 2c 20 63 74 78 74 29 3b | 0d 7d 0d 0d 42 6f 67 75 |, ctxt);|.}..Bogu|
|00001da0| 73 43 68 61 6e 6e 65 6c | 2e 70 72 6f 74 6f 74 79 |sChannel|.prototy|
|00001db0| 70 65 2e 61 73 79 6e 63 | 52 65 61 64 20 3d 0d 66 |pe.async|Read =.f|
|00001dc0| 75 6e 63 74 69 6f 6e 20 | 28 6c 69 73 74 65 6e 65 |unction |(listene|
|00001dd0| 72 2c 20 63 74 78 74 29 | 0d 7b 0d 20 20 20 20 72 |r, ctxt)|.{. r|
|00001de0| 65 74 75 72 6e 20 6c 69 | 73 74 65 6e 65 72 2e 6f |eturn li|stener.o|
|00001df0| 6e 53 74 61 72 74 52 65 | 71 75 65 73 74 20 28 74 |nStartRe|quest (t|
|00001e00| 68 69 73 2c 20 63 74 78 | 74 29 3b 0d 7d 0d 0d 2f |his, ctx|t);.}../|
|00001e10| 2a 20 6e 73 49 52 65 71 | 75 65 73 74 20 2a 2f 0d |* nsIReq|uest */.|
|00001e20| 42 6f 67 75 73 43 68 61 | 6e 6e 65 6c 2e 70 72 6f |BogusCha|nnel.pro|
|00001e30| 74 6f 74 79 70 65 2e 69 | 73 50 65 6e 64 69 6e 67 |totype.i|sPending|
|00001e40| 20 3d 0d 66 75 6e 63 74 | 69 6f 6e 20 28 29 0d 7b | =.funct|ion ().{|
|00001e50| 0d 20 20 20 20 72 65 74 | 75 72 6e 20 74 72 75 65 |. ret|urn true|
|00001e60| 3b 0d 7d 0d 0d 42 6f 67 | 75 73 43 68 61 6e 6e 65 |;.}..Bog|usChanne|
|00001e70| 6c 2e 70 72 6f 74 6f 74 | 79 70 65 2e 73 74 61 74 |l.protot|ype.stat|
|00001e80| 75 73 20 3d 20 43 6f 6d | 70 6f 6e 65 6e 74 73 2e |us = Com|ponents.|
|00001e90| 72 65 73 75 6c 74 73 2e | 4e 53 5f 4f 4b 3b 0d 0d |results.|NS_OK;..|
|00001ea0| 42 6f 67 75 73 43 68 61 | 6e 6e 65 6c 2e 70 72 6f |BogusCha|nnel.pro|
|00001eb0| 74 6f 74 79 70 65 2e 63 | 61 6e 63 65 6c 20 3d 0d |totype.c|ancel =.|
|00001ec0| 66 75 6e 63 74 69 6f 6e | 20 28 61 53 74 61 74 75 |function| (aStatu|
|00001ed0| 73 29 0d 7b 0d 20 20 20 | 20 74 68 69 73 2e 73 74 |s).{. | this.st|
|00001ee0| 61 74 75 73 20 3d 20 61 | 53 74 61 74 75 73 3b 0d |atus = a|Status;.|
|00001ef0| 7d 0d 0d 42 6f 67 75 73 | 43 68 61 6e 6e 65 6c 2e |}..Bogus|Channel.|
|00001f00| 70 72 6f 74 6f 74 79 70 | 65 2e 73 75 73 70 65 6e |prototyp|e.suspen|
|00001f10| 64 20 3d 0d 42 6f 67 75 | 73 43 68 61 6e 6e 65 6c |d =.Bogu|sChannel|
|00001f20| 2e 70 72 6f 74 6f 74 79 | 70 65 2e 72 65 73 75 6d |.prototy|pe.resum|
|00001f30| 65 20 3d 0d 66 75 6e 63 | 74 69 6f 6e 20 28 29 0d |e =.func|tion ().|
|00001f40| 7b 0d 20 20 20 20 74 68 | 72 6f 77 20 43 6f 6d 70 |{. th|row Comp|
|00001f50| 6f 6e 65 6e 74 73 2e 72 | 65 73 75 6c 74 73 2e 4e |onents.r|esults.N|
|00001f60| 53 5f 45 52 52 4f 52 5f | 4e 4f 54 5f 49 4d 50 4c |S_ERROR_|NOT_IMPL|
|00001f70| 45 4d 45 4e 54 45 44 3b | 0d 7d 0d 0d 76 61 72 20 |EMENTED;|.}..var |
|00001f80| 43 68 61 74 7a 69 6c 6c | 61 4d 6f 64 75 6c 65 20 |Chatzill|aModule |
|00001f90| 3d 20 6e 65 77 20 4f 62 | 6a 65 63 74 28 29 3b 0d |= new Ob|ject();.|
|00001fa0| 0d 43 68 61 74 7a 69 6c | 6c 61 4d 6f 64 75 6c 65 |.Chatzil|laModule|
|00001fb0| 2e 72 65 67 69 73 74 65 | 72 53 65 6c 66 20 3d 0d |.registe|rSelf =.|
|00001fc0| 66 75 6e 63 74 69 6f 6e | 20 28 63 6f 6d 70 4d 67 |function| (compMg|
|00001fd0| 72 2c 20 66 69 6c 65 53 | 70 65 63 2c 20 6c 6f 63 |r, fileS|pec, loc|
|00001fe0| 61 74 69 6f 6e 2c 20 74 | 79 70 65 29 0d 7b 0d 20 |ation, t|ype).{. |
|00001ff0| 20 20 20 64 75 6d 70 28 | 22 2a 2a 2a 20 52 65 67 | dump(|"*** Reg|
|00002000| 69 73 74 65 72 69 6e 67 | 20 2d 63 68 61 74 20 68 |istering| -chat h|
|00002010| 61 6e 64 6c 65 72 2e 5c | 6e 22 29 3b 0d 20 20 20 |andler.\|n");. |
|00002020| 20 63 6f 6d 70 4d 67 72 | 2e 72 65 67 69 73 74 65 | compMgr|.registe|
|00002030| 72 43 6f 6d 70 6f 6e 65 | 6e 74 57 69 74 68 54 79 |rCompone|ntWithTy|
|00002040| 70 65 28 43 4c 49 4e 45 | 5f 53 45 52 56 49 43 45 |pe(CLINE|_SERVICE|
|00002050| 5f 43 49 44 2c 0d 20 20 | 20 20 20 20 20 20 20 20 |_CID,. | |
|00002060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002070| 20 20 20 20 20 20 20 20 | 20 20 20 20 22 43 68 61 | | "Cha|
|00002080| 74 7a 69 6c 6c 61 20 43 | 6f 6d 6d 61 6e 64 4c 69 |tzilla C|ommandLi|
|00002090| 6e 65 20 53 65 72 76 69 | 63 65 22 2c 0d 20 20 20 |ne Servi|ce",. |
|000020a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000020b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000020c0| 20 20 20 43 4c 49 4e 45 | 5f 53 45 52 56 49 43 45 | CLINE|_SERVICE|
|000020d0| 5f 43 4f 4e 54 52 41 43 | 54 49 44 2c 20 66 69 6c |_CONTRAC|TID, fil|
|000020e0| 65 53 70 65 63 2c 0d 20 | 20 20 20 20 20 20 20 20 |eSpec,. | |
|000020f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 6c 6f 63 | | loc|
|00002110| 61 74 69 6f 6e 2c 20 74 | 72 75 65 2c 20 74 72 75 |ation, t|rue, tru|
|00002120| 65 2c 20 74 79 70 65 29 | 3b 0d 20 20 20 20 0d 09 |e, type)|;. ..|
|00002130| 63 61 74 6d 61 6e 20 3d | 20 43 6f 6d 70 6f 6e 65 |catman =| Compone|
|00002140| 6e 74 73 2e 63 6c 61 73 | 73 65 73 5b 22 40 6d 6f |nts.clas|ses["@mo|
|00002150| 7a 69 6c 6c 61 2e 6f 72 | 67 2f 63 61 74 65 67 6f |zilla.or|g/catego|
|00002160| 72 79 6d 61 6e 61 67 65 | 72 3b 31 22 5d 0d 20 20 |rymanage|r;1"]. |
|00002170| 20 20 20 20 20 20 2e 67 | 65 74 53 65 72 76 69 63 | .g|etServic|
|00002180| 65 28 6e 73 49 43 61 74 | 65 67 6f 72 79 4d 61 6e |e(nsICat|egoryMan|
|00002190| 61 67 65 72 29 3b 0d 09 | 63 61 74 6d 61 6e 2e 61 |ager);..|catman.a|
|000021a0| 64 64 43 61 74 65 67 6f | 72 79 45 6e 74 72 79 28 |ddCatego|ryEntry(|
|000021b0| 22 63 6f 6d 6d 61 6e 64 | 2d 6c 69 6e 65 2d 61 72 |"command|-line-ar|
|000021c0| 67 75 6d 65 6e 74 2d 68 | 61 6e 64 6c 65 72 73 22 |gument-h|andlers"|
|000021d0| 2c 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,. | |
|000021e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 22 63 | | "c|
|000021f0| 68 61 74 7a 69 6c 6c 61 | 20 63 6f 6d 6d 61 6e 64 |hatzilla| command|
|00002200| 20 6c 69 6e 65 20 68 61 | 6e 64 6c 65 72 22 2c 0d | line ha|ndler",.|
|00002210| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002220| 20 20 20 20 20 20 20 20 | 20 20 20 20 43 4c 49 4e | | CLIN|
|00002230| 45 5f 53 45 52 56 49 43 | 45 5f 43 4f 4e 54 52 41 |E_SERVIC|E_CONTRA|
|00002240| 43 54 49 44 2c 20 74 72 | 75 65 2c 20 74 72 75 65 |CTID, tr|ue, true|
|00002250| 29 3b 0d 0d 20 20 20 20 | 64 75 6d 70 28 22 2a 2a |);.. |dump("**|
|00002260| 2a 20 52 65 67 69 73 74 | 65 72 69 6e 67 20 78 2d |* Regist|ering x-|
|00002270| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2d 69 72 63 20 |applicat|ion-irc |
|00002280| 68 61 6e 64 6c 65 72 2e | 5c 6e 22 29 3b 0d 20 20 |handler.|\n");. |
|00002290| 20 20 63 6f 6d 70 4d 67 | 72 2e 72 65 67 69 73 74 | compMg|r.regist|
|000022a0| 65 72 43 6f 6d 70 6f 6e | 65 6e 74 57 69 74 68 54 |erCompon|entWithT|
|000022b0| 79 70 65 28 49 52 43 43 | 4e 54 5f 48 41 4e 44 4c |ype(IRCC|NT_HANDL|
|000022c0| 45 52 5f 43 49 44 2c 0d | 20 20 20 20 20 20 20 20 |ER_CID,.| |
|000022d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 22 49 | | "I|
|000022f0| 52 43 20 43 6f 6e 74 65 | 6e 74 20 48 61 6e 64 6c |RC Conte|nt Handl|
|00002300| 65 72 22 2c 0d 20 20 20 | 20 20 20 20 20 20 20 20 |er",. | |
|00002310| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002320| 20 20 20 20 20 20 20 20 | 20 20 20 49 52 43 43 4e | | IRCCN|
|00002330| 54 5f 48 41 4e 44 4c 45 | 52 5f 43 4f 4e 54 52 41 |T_HANDLE|R_CONTRA|
|00002340| 43 54 49 44 2c 20 66 69 | 6c 65 53 70 65 63 2c 0d |CTID, fi|leSpec,.|
|00002350| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002370| 20 20 20 20 20 20 6c 6f | 63 61 74 69 6f 6e 2c 20 | lo|cation, |
|00002380| 74 72 75 65 2c 20 74 72 | 75 65 2c 20 74 79 70 65 |true, tr|ue, type|
|00002390| 29 3b 0d 0d 20 20 20 20 | 64 75 6d 70 28 22 2a 2a |);.. |dump("**|
|000023a0| 2a 20 52 65 67 69 73 74 | 65 72 69 6e 67 20 69 72 |* Regist|ering ir|
|000023b0| 63 20 70 72 6f 74 6f 63 | 6f 6c 20 68 61 6e 64 6c |c protoc|ol handl|
|000023c0| 65 72 2e 5c 6e 22 29 3b | 0d 20 20 20 20 63 6f 6d |er.\n");|. com|
|000023d0| 70 4d 67 72 2e 72 65 67 | 69 73 74 65 72 43 6f 6d |pMgr.reg|isterCom|
|000023e0| 70 6f 6e 65 6e 74 57 69 | 74 68 54 79 70 65 28 49 |ponentWi|thType(I|
|000023f0| 52 43 50 52 4f 54 5f 48 | 41 4e 44 4c 45 52 5f 43 |RCPROT_H|ANDLER_C|
|00002400| 49 44 2c 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ID,. | |
|00002410| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002420| 20 20 20 20 20 20 20 20 | 20 20 22 49 52 43 20 70 | | "IRC p|
|00002430| 72 6f 74 6f 63 6f 6c 20 | 68 61 6e 64 6c 65 72 22 |rotocol |handler"|
|00002440| 2c 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,. | |
|00002450| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002460| 20 20 20 20 20 20 20 20 | 49 52 43 50 52 4f 54 5f | |IRCPROT_|
|00002470| 48 41 4e 44 4c 45 52 5f | 43 4f 4e 54 52 41 43 54 |HANDLER_|CONTRACT|
|00002480| 49 44 2c 20 66 69 6c 65 | 53 70 65 63 2c 20 6c 6f |ID, file|Spec, lo|
|00002490| 63 61 74 69 6f 6e 2c 0d | 20 20 20 20 20 20 20 20 |cation,.| |
|000024a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000024b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 74 72 | | tr|
|000024c0| 75 65 2c 20 74 72 75 65 | 2c 20 74 79 70 65 29 3b |ue, true|, type);|
|000024d0| 0d 0d 7d 0d 0d 43 68 61 | 74 7a 69 6c 6c 61 4d 6f |..}..Cha|tzillaMo|
|000024e0| 64 75 6c 65 2e 75 6e 72 | 65 67 69 73 74 65 72 53 |dule.unr|egisterS|
|000024f0| 65 6c 66 20 3d 0d 66 75 | 6e 63 74 69 6f 6e 28 63 |elf =.fu|nction(c|
|00002500| 6f 6d 70 4d 67 72 2c 20 | 66 69 6c 65 53 70 65 63 |ompMgr, |fileSpec|
|00002510| 2c 20 6c 6f 63 61 74 69 | 6f 6e 29 0d 7b 0d 20 20 |, locati|on).{. |
|00002520| 20 20 63 6f 6d 70 4d 67 | 72 2e 75 6e 72 65 67 69 | compMg|r.unregi|
|00002530| 73 74 65 72 43 6f 6d 70 | 6f 6e 65 6e 74 53 70 65 |sterComp|onentSpe|
|00002540| 63 28 43 4c 49 4e 45 5f | 53 45 52 56 49 43 45 5f |c(CLINE_|SERVICE_|
|00002550| 43 49 44 2c 20 66 69 6c | 65 53 70 65 63 29 3b 0d |CID, fil|eSpec);.|
|00002560| 09 63 61 74 6d 61 6e 20 | 3d 20 43 6f 6d 70 6f 6e |.catman |= Compon|
|00002570| 65 6e 74 73 2e 63 6c 61 | 73 73 65 73 5b 22 40 6d |ents.cla|sses["@m|
|00002580| 6f 7a 69 6c 6c 61 2e 6f | 72 67 2f 63 61 74 65 67 |ozilla.o|rg/categ|
|00002590| 6f 72 79 6d 61 6e 61 67 | 65 72 3b 31 22 5d 0d 20 |orymanag|er;1"]. |
|000025a0| 20 20 20 20 20 20 20 2e | 67 65 74 53 65 72 76 69 | .|getServi|
|000025b0| 63 65 28 6e 73 49 43 61 | 74 65 67 6f 72 79 4d 61 |ce(nsICa|tegoryMa|
|000025c0| 6e 61 67 65 72 29 3b 0d | 09 63 61 74 6d 61 6e 2e |nager);.|.catman.|
|000025d0| 64 65 6c 65 74 65 43 61 | 74 65 67 6f 72 79 45 6e |deleteCa|tegoryEn|
|000025e0| 74 72 79 28 22 63 6f 6d | 6d 61 6e 64 2d 6c 69 6e |try("com|mand-lin|
|000025f0| 65 2d 61 72 67 75 6d 65 | 6e 74 2d 68 61 6e 64 6c |e-argume|nt-handl|
|00002600| 65 72 73 22 2c 0d 20 20 | 20 20 20 20 20 20 20 20 |ers",. | |
|00002610| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002620| 20 20 20 20 20 43 4c 49 | 4e 45 5f 53 45 52 56 49 | CLI|NE_SERVI|
|00002630| 43 45 5f 43 4f 4e 54 52 | 41 43 54 49 44 2c 20 74 |CE_CONTR|ACTID, t|
|00002640| 72 75 65 29 3b 0d 7d 0d | 0d 43 68 61 74 7a 69 6c |rue);.}.|.Chatzil|
|00002650| 6c 61 4d 6f 64 75 6c 65 | 2e 67 65 74 43 6c 61 73 |laModule|.getClas|
|00002660| 73 4f 62 6a 65 63 74 20 | 3d 0d 66 75 6e 63 74 69 |sObject |=.functi|
|00002670| 6f 6e 20 28 63 6f 6d 70 | 4d 67 72 2c 20 63 69 64 |on (comp|Mgr, cid|
|00002680| 2c 20 69 69 64 29 20 7b | 0d 20 20 20 20 69 66 20 |, iid) {|. if |
|00002690| 28 63 69 64 2e 65 71 75 | 61 6c 73 28 43 4c 49 4e |(cid.equ|als(CLIN|
|000026a0| 45 5f 53 45 52 56 49 43 | 45 5f 43 49 44 29 29 0d |E_SERVIC|E_CID)).|
|000026b0| 20 20 20 20 20 20 20 20 | 72 65 74 75 72 6e 20 43 | |return C|
|000026c0| 4c 69 6e 65 46 61 63 74 | 6f 72 79 3b 0d 0d 20 20 |LineFact|ory;.. |
|000026d0| 20 20 69 66 20 28 63 69 | 64 2e 65 71 75 61 6c 73 | if (ci|d.equals|
|000026e0| 28 49 52 43 43 4e 54 5f | 48 41 4e 44 4c 45 52 5f |(IRCCNT_|HANDLER_|
|000026f0| 43 49 44 29 29 0d 20 20 | 20 20 20 20 20 20 72 65 |CID)). | re|
|00002700| 74 75 72 6e 20 49 52 43 | 43 6f 6e 74 65 6e 74 48 |turn IRC|ContentH|
|00002710| 61 6e 64 6c 65 72 46 61 | 63 74 6f 72 79 3b 0d 0d |andlerFa|ctory;..|
|00002720| 20 20 20 20 69 66 20 28 | 63 69 64 2e 65 71 75 61 | if (|cid.equa|
|00002730| 6c 73 28 49 52 43 50 52 | 4f 54 5f 48 41 4e 44 4c |ls(IRCPR|OT_HANDL|
|00002740| 45 52 5f 43 49 44 29 29 | 0d 20 20 20 20 20 20 20 |ER_CID))|. |
|00002750| 20 72 65 74 75 72 6e 20 | 49 52 43 50 72 6f 74 6f | return |IRCProto|
|00002760| 63 6f 6c 48 61 6e 64 6c | 65 72 46 61 63 74 6f 72 |colHandl|erFactor|
|00002770| 79 3b 0d 20 20 20 20 0d | 20 20 20 20 69 66 20 28 |y;. .| if (|
|00002780| 21 69 69 64 2e 65 71 75 | 61 6c 73 28 43 6f 6d 70 |!iid.equ|als(Comp|
|00002790| 6f 6e 65 6e 74 73 2e 69 | 6e 74 65 72 66 61 63 65 |onents.i|nterface|
|000027a0| 73 2e 6e 73 49 46 61 63 | 74 6f 72 79 29 29 0d 20 |s.nsIFac|tory)). |
|000027b0| 20 20 20 20 20 20 20 74 | 68 72 6f 77 20 43 6f 6d | t|hrow Com|
|000027c0| 70 6f 6e 65 6e 74 73 2e | 72 65 73 75 6c 74 73 2e |ponents.|results.|
|000027d0| 4e 53 5f 45 52 52 4f 52 | 5f 4e 4f 54 5f 49 4d 50 |NS_ERROR|_NOT_IMP|
|000027e0| 4c 45 4d 45 4e 54 45 44 | 3b 0d 0d 20 20 20 20 74 |LEMENTED|;.. t|
|000027f0| 68 72 6f 77 20 43 6f 6d | 70 6f 6e 65 6e 74 73 2e |hrow Com|ponents.|
|00002800| 72 65 73 75 6c 74 73 2e | 4e 53 5f 45 52 52 4f 52 |results.|NS_ERROR|
|00002810| 5f 4e 4f 5f 49 4e 54 45 | 52 46 41 43 45 3b 0d 20 |_NO_INTE|RFACE;. |
|00002820| 20 20 20 0d 7d 0d 0d 43 | 68 61 74 7a 69 6c 6c 61 | .}..C|hatzilla|
|00002830| 4d 6f 64 75 6c 65 2e 63 | 61 6e 55 6e 6c 6f 61 64 |Module.c|anUnload|
|00002840| 20 3d 0d 66 75 6e 63 74 | 69 6f 6e 28 63 6f 6d 70 | =.funct|ion(comp|
|00002850| 4d 67 72 29 0d 7b 0d 20 | 20 20 20 72 65 74 75 72 |Mgr).{. | retur|
|00002860| 6e 20 74 72 75 65 3b 0d | 7d 0d 0d 2f 2a 20 65 6e |n true;.|}../* en|
|00002870| 74 72 79 70 6f 69 6e 74 | 20 2a 2f 0d 66 75 6e 63 |trypoint| */.func|
|00002880| 74 69 6f 6e 20 4e 53 47 | 65 74 4d 6f 64 75 6c 65 |tion NSG|etModule|
|00002890| 28 63 6f 6d 70 4d 67 72 | 2c 20 66 69 6c 65 53 70 |(compMgr|, fileSp|
|000028a0| 65 63 29 20 7b 0d 20 20 | 20 20 72 65 74 75 72 6e |ec) {. | return|
|000028b0| 20 43 68 61 74 7a 69 6c | 6c 61 4d 6f 64 75 6c 65 | Chatzil|laModule|
|000028c0| 3b 0d 7d 0d 00 00 00 00 | 00 00 00 00 00 00 00 00 |;.}.....|........|
|000028d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002900| 00 00 01 00 00 00 01 63 | 00 00 00 63 00 00 00 41 |.......c|...c...A|
|00002910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a00| 00 00 00 5f 71 d4 5f a1 | 3f e5 32 30 00 04 00 00 |..._q._.|?.20....|
|00002a10| 00 00 00 00 00 00 b6 e4 | dc f8 b6 e4 dc f8 00 00 |........|........|
|00002a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 16 70 |........|.......p|
|00002a30| 69 6e 6b 65 72 74 6f 6e | 25 6e 65 74 73 63 61 70 |inkerton|%netscap|
|00002a40| 65 2e 63 6f 6d 00 00 00 | 14 63 68 61 74 7a 69 6c |e.com...|.chatzil|
|00002a50| 6c 61 2d 73 65 72 76 69 | 63 65 2e 6a 73 00 00 00 |la-servi|ce.js...|
|00002a60| 00 00 00 00 00 01 00 00 | 00 01 63 00 00 00 63 00 |........|..c...c.|
|00002a70| 00 00 41 53 4f 52 54 02 | 92 00 80 00 1c 00 32 00 |..ASORT.|......2.|
|00002a80| 00 63 6b 69 64 00 00 00 | 0a 00 80 00 00 00 00 00 |.ckid...|........|
|00002a90| 00 0c 1e 65 bc 0e 50 72 | 6f 6a 65 63 74 6f 72 20 |...e..Pr|ojector |
|00002aa0| 44 61 74 61 00 00 00 00 | 00 00 00 00 00 00 00 00 |Data....|........|
|00002ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+