Changeset 94acdd0
- Timestamp:
- 2008-09-28T11:18:19Z (16 years ago)
- Branches:
- master
- Children:
- b2c062d
- Parents:
- e180c59
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
chat.c
re180c59 r94acdd0 170 170 } 171 171 172 int chat_join( irc_t *irc, struct chat *c )172 int chat_join( irc_t *irc, struct chat *c, const char *password ) 173 173 { 174 174 struct groupchat *gc; … … 178 178 nick = irc->nick; 179 179 180 if( ( gc = c->acc->prpl->chat_join( c->acc->ic, c->handle, nick, NULL) ) )180 if( ( gc = c->acc->prpl->chat_join( c->acc->ic, c->handle, nick, password ) ) ) 181 181 { 182 182 g_free( gc->channel ); -
chat.h
re180c59 r94acdd0 44 44 int chat_chanok( char *a ); 45 45 46 int chat_join( irc_t *irc, struct chat *c );46 int chat_join( irc_t *irc, struct chat *c, const char *password ); -
irc_commands.c
re180c59 r94acdd0 194 194 { 195 195 struct chat *c; 196 user_t *u;197 196 198 197 if( strchr( CTYPES, cmd[1][0] ) == NULL || cmd[1][1] == 0 ) 199 198 irc_reply( irc, 479, "%s :Invalid channel name", cmd[1] ); 200 199 else if( ( c = chat_bychannel( irc, cmd[1] ) ) && c->acc && c->acc->ic ) 201 chat_join( irc, c );200 chat_join( irc, c, cmd[2] ); 202 201 else 203 202 irc_reply( irc, 403, "%s :No such channel", cmd[1] ); -
lib/xmltree.c
re180c59 r94acdd0 472 472 } 473 473 474 struct xt_node *xt_new_node( char *name, c har *text, struct xt_node *children )474 struct xt_node *xt_new_node( char *name, const char *text, struct xt_node *children ) 475 475 { 476 476 struct xt_node *node, *c; -
lib/xmltree.h
re180c59 r94acdd0 90 90 char *xt_find_attr( struct xt_node *node, const char *key ); 91 91 92 struct xt_node *xt_new_node( char *name, c har *text, struct xt_node *children );92 struct xt_node *xt_new_node( char *name, const char *text, struct xt_node *children ); 93 93 void xt_add_child( struct xt_node *parent, struct xt_node *child ); 94 94 void xt_add_attr( struct xt_node *node, const char *key, const char *value ); -
protocols/jabber/conference.c
re180c59 r94acdd0 26 26 static xt_status jabber_chat_join_failed( struct im_connection *ic, struct xt_node *node, struct xt_node *orig ); 27 27 28 struct groupchat *jabber_chat_join( struct im_connection *ic, c har *room, char *nick,char *password )28 struct groupchat *jabber_chat_join( struct im_connection *ic, const char *room, const char *nick, const char *password ) 29 29 { 30 30 struct jabber_chat *jc; -
protocols/jabber/jabber.c
re180c59 r94acdd0 425 425 } 426 426 427 static struct groupchat *jabber_chat_join_( struct im_connection *ic, c har *room, char *nick,char *password )427 static struct groupchat *jabber_chat_join_( struct im_connection *ic, const char *room, const char *nick, const char *password ) 428 428 { 429 429 if( strchr( room, '@' ) == NULL ) -
protocols/jabber/jabber.h
re180c59 r94acdd0 240 240 241 241 /* conference.c */ 242 struct groupchat *jabber_chat_join( struct im_connection *ic, c har *room, char *nick,char *password );242 struct groupchat *jabber_chat_join( struct im_connection *ic, const char *room, const char *nick, const char *password ); 243 243 struct groupchat *jabber_chat_by_jid( struct im_connection *ic, const char *name ); 244 244 void jabber_chat_free( struct groupchat *c ); -
protocols/nogaim.c
re180c59 r94acdd0 280 280 281 281 if( set_getbool( &c->set, "auto_join" ) ) 282 chat_join( irc, c );282 chat_join( irc, c, NULL ); 283 283 } 284 284 } … … 710 710 } 711 711 712 struct groupchat *imcb_chat_new( struct im_connection *ic, c har *handle )712 struct groupchat *imcb_chat_new( struct im_connection *ic, const char *handle ) 713 713 { 714 714 struct groupchat *c; -
protocols/nogaim.h
re180c59 r94acdd0 209 209 * not implement this. */ 210 210 struct groupchat * 211 (* chat_join) (struct im_connection *, c har *room, char *nick,char *password);211 (* chat_join) (struct im_connection *, const char *room, const char *nick, const char *password); 212 212 /* Change the topic, if supported. Note that BitlBee expects the IM 213 213 server to confirm the topic change with a regular topic change … … 290 290 * the user her/himself. At that point the group chat will be visible to the 291 291 * user, too. */ 292 G_MODULE_EXPORT struct groupchat *imcb_chat_new( struct im_connection *ic, c har *handle );292 G_MODULE_EXPORT struct groupchat *imcb_chat_new( struct im_connection *ic, const char *handle ); 293 293 G_MODULE_EXPORT void imcb_chat_add_buddy( struct groupchat *b, char *handle ); 294 294 /* To remove a handle from a group chat. Reason can be NULL. */ -
protocols/oscar/oscar.c
re180c59 r94acdd0 2581 2581 } 2582 2582 2583 struct groupchat *oscar_chat_join(struct im_connection * ic, c har * room, char * nick,char * password )2583 struct groupchat *oscar_chat_join(struct im_connection * ic, const char * room, const char * nick, const char * password ) 2584 2584 { 2585 2585 struct oscar_data * od = (struct oscar_data *)ic->proto_data;
Note: See TracChangeset
for help on using the changeset viewer.