| 170 } |
170 } |
| 171 return -1; |
171 return -1; |
| 172 } |
172 } |
| 173 |
173 |
| 174 char *local_zephyr_normalize(zephyr_account* zephyr,const char *); |
174 char *local_zephyr_normalize(zephyr_account* zephyr,const char *); |
| 175 static const char *zephyr_normalize(const GaimAccount *, const char *); |
|
| 176 static void zephyr_chat_set_topic(GaimConnection * gc, int id, const char *topic); |
175 static void zephyr_chat_set_topic(GaimConnection * gc, int id, const char *topic); |
| 177 char* zephyr_tzc_deescape_str(const char *message); |
176 char* zephyr_tzc_deescape_str(const char *message); |
| 178 |
177 |
| 179 char *zephyr_strip_local_realm(zephyr_account* zephyr,const char* user){ |
178 char *zephyr_strip_local_realm(zephyr_account* zephyr,const char* user){ |
| 180 /* |
179 /* |
| 2148 g_free(html_buf); |
2147 g_free(html_buf); |
| 2149 |
2148 |
| 2150 return 1; |
2149 return 1; |
| 2151 } |
2150 } |
| 2152 |
2151 |
| 2153 static const char *zephyr_normalize(const GaimAccount * account, const char *orig) |
|
| 2154 { |
|
| 2155 /* returns the string you gave it. Maybe this function shouldn't be here */ |
|
| 2156 static char buf[80]; |
|
| 2157 /* gaim_debug_error("zephyr","entering zephyr_normalize\n"); */ |
|
| 2158 |
|
| 2159 if (!g_ascii_strcasecmp(orig, "")) { |
|
| 2160 buf[0] = '\0'; |
|
| 2161 return buf; |
|
| 2162 } else { |
|
| 2163 g_snprintf(buf, 80, "%s", orig); |
|
| 2164 } |
|
| 2165 /* gaim_debug_error("zephyr","leaving zephyr_normalize\n"); */ |
|
| 2166 |
|
| 2167 return buf; |
|
| 2168 } |
|
| 2169 |
|
| 2170 |
|
| 2171 char *local_zephyr_normalize(zephyr_account *zephyr,const char *orig) |
2152 char *local_zephyr_normalize(zephyr_account *zephyr,const char *orig) |
| 2172 { |
2153 { |
| 2173 /* |
2154 /* |
| 2174 Basically the inverse of zephyr_strip_local_realm |
2155 Basically the inverse of zephyr_strip_local_realm |
| 2175 */ |
2156 */ |
| 2828 NULL, /* alias_buddy */ |
2809 NULL, /* alias_buddy */ |
| 2829 NULL, /* group_buddy */ |
2810 NULL, /* group_buddy */ |
| 2830 NULL, /* rename_group */ |
2811 NULL, /* rename_group */ |
| 2831 NULL, /* buddy_free */ |
2812 NULL, /* buddy_free */ |
| 2832 NULL, /* convo_closed */ |
2813 NULL, /* convo_closed */ |
| 2833 zephyr_normalize, /* normalize */ |
2814 NULL, /* normalize */ |
| 2834 NULL, /* XXX set_buddy_icon */ |
2815 NULL, /* XXX set_buddy_icon */ |
| 2835 NULL, /* remove_group */ |
2816 NULL, /* remove_group */ |
| 2836 NULL, /* XXX get_cb_real_name */ |
2817 NULL, /* XXX get_cb_real_name */ |
| 2837 zephyr_chat_set_topic, /* set_chat_topic */ |
2818 zephyr_chat_set_topic, /* set_chat_topic */ |
| 2838 zephyr_find_blist_chat, /* find_blist_chat */ |
2819 zephyr_find_blist_chat, /* find_blist_chat */ |