- Timestamp:
- 2010-05-08T13:11:09Z (15 years ago)
- Branches:
- master
- Children:
- b0364dc
- Parents:
- d343eaa
- Location:
- protocols
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/bee.h
rd343eaa r9e27f18 85 85 gboolean (*chat_add_user)( bee_t *bee, struct groupchat *c, bee_user_t *bu ); 86 86 gboolean (*chat_remove_user)( bee_t *bee, struct groupchat *c, bee_user_t *bu ); 87 gboolean (*chat_topic)( bee_t *bee, struct groupchat *c, const char *new, bee_user_t *bu ); 87 88 gboolean (*chat_name_hint)( bee_t *bee, struct groupchat *c, const char *name ); 88 89 -
protocols/bee_chat.c
rd343eaa r9e27f18 124 124 void imcb_chat_topic( struct groupchat *c, char *who, char *topic, time_t set_at ) 125 125 { 126 #if 0 127 struct im_connection *ic = c->ic; 128 user_t *u = NULL; 126 struct im_connection *ic = c->ic; 127 bee_t *bee = ic->bee; 128 bee_user_t *bu; 129 130 if( !bee->ui->chat_topic ) 131 return; 129 132 130 133 if( who == NULL) 131 u = user_find( ic->irc, ic->irc->mynick );134 bu = NULL; 132 135 else if( g_strcasecmp( who, ic->acc->user ) == 0 ) 133 u = user_find( ic->irc, ic->irc->nick );134 else 135 u = user_findhandle(ic, who );136 bu = bee->user; 137 else 138 bu = bee_user_by_handle( bee, ic, who ); 136 139 137 140 if( ( g_strcasecmp( set_getstr( &ic->bee->set, "strip_html" ), "always" ) == 0 ) || … … 139 142 strip_html( topic ); 140 143 141 g_free( c->topic ); 142 c->topic = g_strdup( topic ); 143 144 if( c->joined && u ) 145 irc_write( ic->irc, ":%s!%s@%s TOPIC %s :%s", u->nick, u->user, u->host, c->channel, topic ); 146 #endif 144 bee->ui->chat_topic( bee, c, topic, bu ); 147 145 } 148 146 … … 206 204 struct im_connection *ic = c->ic; 207 205 char *buf = NULL; 208 int st;209 206 210 207 if( ( ic->flags & OPT_DOES_HTML ) && ( g_strncasecmp( msg, "<html>", 6 ) != 0 ) )
Note: See TracChangeset
for help on using the changeset viewer.