equal
deleted
inserted
replaced
242 return msg; |
242 return msg; |
243 |
243 |
244 case 18: /* tell */ |
244 case 18: /* tell */ |
245 if ((token = strtok (NULL, " "))) { |
245 if ((token = strtok (NULL, " "))) { |
246 if ((parameters = strtok (NULL, "\r\n"))) { |
246 if ((parameters = strtok (NULL, "\r\n"))) { |
247 snprintf (msg, 512, "PRIVMSG %s :%s, %s\r\n", |
247 if (*token == '*') |
248 ('*' == *token) ? ++token : message->channel, token, db_lookup (DATABASE_FILE, |
248 message->channel = ++token; |
249 parameters)); |
249 snprintf (msg, 512, "PRIVMSG %s :%s, %s\r\n", message->channel, token, |
|
250 db_lookup (DATABASE_FILE, parameters)); |
250 } |
251 } |
251 } |
252 } |
252 return msg; |
253 return msg; |
253 |
254 |
254 case 19: /* op */ |
255 case 19: /* op */ |