Mercurial > hg
comparison mcabber/src/commands.c @ 213:4fcdbfdf7c20
[/trunk] Changeset 225 by mikael
* Fix a crash when renaming to a non-7bit name (same with group name)
* Move all utf-8 usage to jabglue
author | mikael |
---|---|
date | Sun, 08 May 2005 20:27:14 +0000 |
parents | 465d98d2f8e3 |
children | 73f6ce668ba8 |
comparison
equal
deleted
inserted
replaced
212:465d98d2f8e3 | 213:4fcdbfdf7c20 |
---|---|
147 // send_message(msg) | 147 // send_message(msg) |
148 // Write the message in the buddy's window and send the message on | 148 // Write the message in the buddy's window and send the message on |
149 // the network. | 149 // the network. |
150 void send_message(char *msg) | 150 void send_message(char *msg) |
151 { | 151 { |
152 char *buffer; | |
153 const char *jid; | 152 const char *jid; |
154 | 153 |
155 if (!current_buddy) { | 154 if (!current_buddy) { |
156 scr_LogPrint("No buddy currently selected."); | 155 scr_LogPrint("No buddy currently selected."); |
157 return; | 156 return; |
165 | 164 |
166 // local part (UI, logging, etc.) | 165 // local part (UI, logging, etc.) |
167 hk_message_out(jid, 0, msg); | 166 hk_message_out(jid, 0, msg); |
168 | 167 |
169 // Network part | 168 // Network part |
170 buffer = utf8_encode(msg); | 169 jb_send_msg(jid, msg); |
171 jb_send_msg(jid, buffer); | |
172 free(buffer); | |
173 } | 170 } |
174 | 171 |
175 // process_line(line) | 172 // process_line(line) |
176 // Process a command/message line. | 173 // Process a command/message line. |
177 // If this isn't a command, this is a message and it is sent to the | 174 // If this isn't a command, this is a message and it is sent to the |