Mercurial > pidgin
comparison src/protocols/irc/cmds.c @ 9248:6430b09ccc71
[gaim-migrate @ 10047]
removing irc's /help command, since the core now provides one, that does
exactly the same thing. Maybe IRC's version was prettier, but we can fix
that, if need be.
committer: Tailor Script <tailor@pidgin.im>
| author | Tim Ringenbach <marv@pidgin.im> |
|---|---|
| date | Wed, 09 Jun 2004 06:34:33 +0000 |
| parents | 933a19e3a6b3 |
| children | 00242c2419c3 |
comparison
equal
deleted
inserted
replaced
| 9247:933c7418fd03 | 9248:6430b09ccc71 |
|---|---|
| 126 } | 126 } |
| 127 | 127 |
| 128 return 1; | 128 return 1; |
| 129 } | 129 } |
| 130 | 130 |
| 131 int irc_cmd_help(struct irc_conn *irc, const char *cmd, const char *target, const char **args) | |
| 132 { | |
| 133 GaimConversation *convo = gaim_find_conversation_with_account(target, irc->account); | |
| 134 | |
| 135 /* XXX we should eventually have per-command help */ | |
| 136 | |
| 137 if (!convo) | |
| 138 return 0; | |
| 139 | |
| 140 if (gaim_conversation_get_type(convo) == GAIM_CONV_CHAT) { | |
| 141 gaim_conv_chat_write(GAIM_CONV_CHAT(convo), "", _("<B>Supported IRC Commands:</B><BR>" | |
| 142 "AWAY INVITE JOIN KICK<BR>" | |
| 143 "ME MODE MSG NAMES<BR>" | |
| 144 "NICK OP DEOP OPERWALL<BR>" | |
| 145 "PART PING QUERY QUIT<BR>" | |
| 146 "QUOTE REMOVE TOPIC UMODE<BR>" | |
| 147 "VOICE DEVOICE WALLOPS WHOIS<BR>"), | |
| 148 GAIM_MESSAGE_NO_LOG, time(NULL)); | |
| 149 } else { | |
| 150 gaim_conv_im_write(GAIM_CONV_IM(convo), "", _("<B>Supported IRC Commands:</B><BR>" | |
| 151 "AWAY JOIN ME MODE<BR>" | |
| 152 "MSG NICK OPERWALL PING<BR>" | |
| 153 "QUERY QUIT QUOTE UMODE<BR>" | |
| 154 "WALLOPS WHOIS"), GAIM_MESSAGE_NO_LOG, time(NULL)); | |
| 155 } | |
| 156 | |
| 157 return 0; | |
| 158 } | |
| 159 | |
| 160 int irc_cmd_invite(struct irc_conn *irc, const char *cmd, const char *target, const char **args) | 131 int irc_cmd_invite(struct irc_conn *irc, const char *cmd, const char *target, const char **args) |
| 161 { | 132 { |
| 162 char *buf; | 133 char *buf; |
| 163 | 134 |
| 164 if (!args || !args[0] || !(args[1] || target)) | 135 if (!args || !args[0] || !(args[1] || target)) |
