| 203 |
203 |
| 204 /* We want only the short hostname, not the FQDN - this will prevent the |
204 /* We want only the short hostname, not the FQDN - this will prevent the |
| 205 * resource string from being unreasonably long on systems which stuff the |
205 * resource string from being unreasonably long on systems which stuff the |
| 206 * whole FQDN in the hostname */ |
206 * whole FQDN in the hostname */ |
| 207 if((dot = strchr(hostname, '.'))) |
207 if((dot = strchr(hostname, '.'))) |
| 208 dot = '\0'; |
208 *dot = '\0'; |
| 209 |
209 |
| 210 return purple_strreplace(input, "__HOSTNAME__", hostname); |
210 return purple_strreplace(input, "__HOSTNAME__", hostname); |
| 211 } |
211 } |
| 212 |
212 |
| 213 static gboolean |
213 static gboolean |