comparison plugins/SIGNALS @ 2273:0b5c3338fa3d

[gaim-migrate @ 2283] One of the girls on the floor of my sister's dorm lost both her parents when their plane was hijacked and crashed into the World Trade Center. my girlfriend's boss's sister-in-law's brother died when the building collapsed. my parents flew to atlanta on monday; they're safe but currently stranded there. they had planned on flying to Raleigh, NC today but now are just hoping to be able to fly home soon. how did this happen? committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 12 Sep 2001 21:29:32 +0000
parents 0b81421021fd
children a49e8f1afbc4
comparison
equal deleted inserted replaced
2272:4ecc9a9a75d8 2273:0b5c3338fa3d
90 90
91 This is deprecated and will not be called again. It will probably be 91 This is deprecated and will not be called again. It will probably be
92 removed eventually. 92 removed eventually.
93 93
94 event_im_recv: 94 event_im_recv:
95 struct gaim_connection *gc, char **who, char **text 95 struct gaim_connection *gc, char **who, char **text, guint32 flags
96 96
97 'gc' is the connection that received the message. 97 'gc' is the connection that received the message.
98 'who' is the username of the person who sent the message. 98 'who' is the username of the person who sent the message.
99 'text' is the actual strict text (with HTML tags and all) of the 99 'text' is the actual strict text (with HTML tags and all) of the
100 message they sent. 100 message they sent.
101 'flags' is message flags.
101 102
102 Note that you can modify these values. (You are encouraged to do so!) 103 Note that you can modify these values. (You are encouraged to do so!)
103 Note that *other* plugins can also modify these values, so you should 104 Note that *other* plugins can also modify these values, so you should
104 check that they are not NULL, and try not to leave them as NULL. 105 check that they are not NULL, and try not to leave them as NULL.
105 106
106 gc was placed as the first arg as opposed to the third for intuitiveness. 107 gc was placed as the first arg as opposed to the third for intuitiveness.
107 Unfortunately, it means that most plugins that use this event need to be 108 Unfortunately, it means that most plugins that use this event need to be
108 slightly modified and then recompiled. 109 slightly modified and then recompiled.
110
111 flags is actually a bit mask. AND with IM_FLAG_AWAY to see if they were
112 away, etc.
109 113
110 event_im_send: 114 event_im_send:
111 struct gaim_connection *gc, char *who, char **text 115 struct gaim_connection *gc, char *who, char **text
112 116
113 'gc' is the connection that you are about to send the message through. 117 'gc' is the connection that you are about to send the message through.
285 you set *what to NULL the message won't be sent, but the preferred 289 you set *what to NULL the message won't be sent, but the preferred
286 way of doing this is to attach to event_im_send so that it really 290 way of doing this is to attach to event_im_send so that it really
287 won't be displayed at all. 291 won't be displayed at all.
288 292
289 event_im_displayed_rcvd: 293 event_im_displayed_rcvd:
290 struct gaim_connection *gc, char *who, char *what 294 struct gaim_connection *gc, char *who, char *what, guint32 flags
291 295
292 This is called after what you receive is displayed. This is useful 296 This is called after what you receive is displayed. This is useful
293 for displaying an autoresponse after the message that triggered it. 297 for displaying an autoresponse after the message that triggered it.
294 There are a bunch of things that are odd about this, especially 298 There are a bunch of things that are odd about this, especially
295 when dealing with being away, so be careful. 299 when dealing with being away, so be careful.
296 300
297 'gc' is the connection the message was received on. 301 'gc' is the connection the message was received on.
298 'who' is who sent the message. 302 'who' is who sent the message.
299 'what' is what was sent. 303 'what' is what was sent.
304 'flags' is flags on the message.