| 1 |
"called on load and reload" |
|---|
| 2 |
load := [ :scriptFilePath | |
|---|
| 3 |
]. |
|---|
| 4 |
|
|---|
| 5 |
"called on unload and relead" |
|---|
| 6 |
unload := [ |
|---|
| 7 |
]. |
|---|
| 8 |
|
|---|
| 9 |
"return an array of NSMenuItems that should be dispalyed for 'item' associated with 'view'" |
|---|
| 10 |
contextualMenuItems := [ :item :view | |
|---|
| 11 |
]. |
|---|
| 12 |
|
|---|
| 13 |
"return an array of toolbar item identifier strings that can be associated with 'view'" |
|---|
| 14 |
toolbarItemIdentifiers := [ :view | |
|---|
| 15 |
]. |
|---|
| 16 |
|
|---|
| 17 |
"return a NSToolbarItem for 'identifier' associated with 'view'" |
|---|
| 18 |
toolbarItem := [ :identifier :view :willBeInserted | |
|---|
| 19 |
]. |
|---|
| 20 |
|
|---|
| 21 |
"process the command and return true if you handle it or false to pass on to another plugin" |
|---|
| 22 |
processUserCommand := [ :command :arguments :connection :view | |
|---|
| 23 |
"return YES if the command was handled or to prevent other plugins or Colloquy from handling it" |
|---|
| 24 |
NO. |
|---|
| 25 |
]. |
|---|
| 26 |
|
|---|
| 27 |
"handle a ctcp request and return true if you handle it or false to pass on to another plugin" |
|---|
| 28 |
processSubcodeRequest := [ :command :arguments :user | |
|---|
| 29 |
"return YES if the command was handled or to prevent other plugins or Colloquy from handling it" |
|---|
| 30 |
NO. |
|---|
| 31 |
]. |
|---|
| 32 |
|
|---|
| 33 |
"handle a ctcp reply and return true if you handle it or false to pass on to another plugin" |
|---|
| 34 |
processSubcodeReply := [ :command :arguments :user | |
|---|
| 35 |
"return YES if the command was handled or to prevent other plugins or Colloquy from handling it" |
|---|
| 36 |
NO. |
|---|
| 37 |
]. |
|---|
| 38 |
|
|---|
| 39 |
"called when 'connection' connects" |
|---|
| 40 |
connected := [ :connection | |
|---|
| 41 |
]. |
|---|
| 42 |
|
|---|
| 43 |
"called when 'connection' is disconnecting" |
|---|
| 44 |
disconnecting := [ :connection | |
|---|
| 45 |
]. |
|---|
| 46 |
|
|---|
| 47 |
"perform a notification" |
|---|
| 48 |
performNotification := [ :identifier :context :preferences | |
|---|
| 49 |
]. |
|---|
| 50 |
|
|---|
| 51 |
"called when an unhandled URL scheme is clicked in 'view'" |
|---|
| 52 |
handleClickedLink := [ :url :view | |
|---|
| 53 |
"return true if the link was handled or to prevent other plugins or Colloquy from handling it" |
|---|
| 54 |
NO. |
|---|
| 55 |
]. |
|---|
| 56 |
|
|---|
| 57 |
"called for each incoming message :the message is mutable" |
|---|
| 58 |
processIncomingMessage := [ :message :view | |
|---|
| 59 |
]. |
|---|
| 60 |
|
|---|
| 61 |
"called for each outgoing message :the message is mutable" |
|---|
| 62 |
processOutgoingMessage := [ :message :view | |
|---|
| 63 |
]. |
|---|
| 64 |
|
|---|
| 65 |
"called when a member joins 'room'" |
|---|
| 66 |
memberJoined := [ :member :room | |
|---|
| 67 |
]. |
|---|
| 68 |
|
|---|
| 69 |
"called when a member parts 'room'" |
|---|
| 70 |
memberParted := [ :member :room :reason | |
|---|
| 71 |
]. |
|---|
| 72 |
|
|---|
| 73 |
"called when a member is kicked from 'room' for 'reason'" |
|---|
| 74 |
memberKicked := [ :member :room :by :reason | |
|---|
| 75 |
]. |
|---|
| 76 |
|
|---|
| 77 |
"called when the local user joins 'room'" |
|---|
| 78 |
joinedRoom := [ :room | |
|---|
| 79 |
]. |
|---|
| 80 |
|
|---|
| 81 |
"called when the local user is parting 'room'" |
|---|
| 82 |
partingFromRoom := [ :room | |
|---|
| 83 |
]. |
|---|
| 84 |
|
|---|
| 85 |
"called when the local user is kicked from 'room' for 'reason'" |
|---|
| 86 |
kickedFromRoom := [ :room :by :reason | |
|---|
| 87 |
]. |
|---|
| 88 |
|
|---|
| 89 |
"called when the topic changes in 'room' by 'user'" |
|---|
| 90 |
topicChanged := [ :topic :room :user | |
|---|
| 91 |
]. |
|---|