From: Lo?c C. <lo...@us...> - 2001-04-13 12:52:33
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib In directory usw-pr-cvs1:/tmp/cvs-serv15451/chat/lib Modified Files: commands.lib.php3 Log Message: The new 'img' command and some modif. it requires Index: commands.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands.lib.php3,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** commands.lib.php3 2001/04/12 23:38:26 1.3 --- commands.lib.php3 2001/04/13 12:52:29 1.4 *************** *** 23,50 **** ! if (eregi('^\/(show|last)([[:space:]]([[:digit:]]+))?$', $message, $cmd)) { ! include('./lib/commands/show.cmd.' . C_EXTENSION); ! } ! else if (eregi('^\/refresh([[:space:]]([[:digit:]]*))?$', $message, $cmd)) ! { ! include('./lib/commands/refresh.cmd.' . C_EXTENSION); } ! else if (eregi('^\/order$', $message)) { ! include('./lib/commands/order.cmd.' . C_EXTENSION); } ! else if (eregi('^\/timestamp$', $message)) { ! include('./lib/commands/timestamp.cmd.' . C_EXTENSION); } ! else if (C_VERSION > 0 ! && eregi('^\/join[[:space:]]((0|1)[[:space:]])?#(.{1,30})$', $message, $cmd)) { ! include('./lib/commands/join.cmd.' . C_EXTENSION); } ! else if (eregi('^\/(quit|exit|bye)([[:space:]](.+))?$', $message, $cmd)) { ! include('./lib/commands/quit.cmd.' . C_EXTENSION); } else if (eregi('^\/ignore([[:space:]]\\-)?([[:space:]](.+))?$', $message, $cmd)) --- 23,47 ---- ! if (eregi('^\/!$', $message, $cmd) ! && (isset($prevMessage) && $prevMessage != '')) { ! include('./lib/commands/history.cmd.' . C_EXTENSION); } ! else if (eregi('^\/announce[[:space:]](.*)?$', $message, $cmd)) { ! include('./lib/commands/announce.cmd.' . C_EXTENSION); } ! else if (C_BANISH != 0 ! && eregi('^\/ban[[:space:]](\*[[:space:]])?(.{1,30})$', $message, $cmd)) { ! include('./lib/commands/banish.cmd.' . C_EXTENSION); } ! else if (eregi('^\/clear$', $message)) { ! include('./lib/commands/clear.cmd.' . C_EXTENSION); } ! else if (eregi('^\/(help|\?)$', $message)) { ! include('./lib/commands/help.cmd.' . C_EXTENSION); } else if (eregi('^\/ignore([[:space:]]\\-)?([[:space:]](.+))?$', $message, $cmd)) *************** *** 52,79 **** include('./lib/commands/ignore.cmd.' . C_EXTENSION); } ! else if (eregi('^\/!$', $message, $cmd) ! && (isset($prevMessage) && $prevMessage != '')) { ! include('./lib/commands/history.cmd.' . C_EXTENSION); } else if (eregi('^\/kick[[:space:]](.{1,30})$', $message, $cmd)) { include('./lib/commands/kick.cmd.' . C_EXTENSION); } else if (eregi('^\/(msg|to)[[:space:]]([^[:space:]]{1,30})[[:space:]](.+)$', $message, $cmd)) { include('./lib/commands/priv_msg.cmd.' . C_EXTENSION); } ! else if (eregi('^\/whois[[:space:]](.{1,30})$', $message, $cmd)) { ! include('./lib/commands/whois.cmd.' . C_EXTENSION); } ! else if (eregi('^\/profile$', $message)) { ! include('./lib/commands/profile.cmd.' . C_EXTENSION); } ! else if (eregi('^\/notify$', $message)) { ! include('./lib/commands/notify.cmd.' . C_EXTENSION); } else if (eregi('^\/promote[[:space:]](.{1,30})$', $message, $cmd)) --- 49,88 ---- include('./lib/commands/ignore.cmd.' . C_EXTENSION); } ! else if (eregi('^\/img$', $message)) { ! include('./lib/commands/img.cmd.' . C_EXTENSION); ! } ! else if (eregi('^\/invite([[:space:]](.+))+$', $message, $cmd)) ! { ! include('./lib/commands/invite.cmd.' . C_EXTENSION); } + else if (C_VERSION > 0 + && eregi('^\/join[[:space:]]((0|1)[[:space:]])?#(.{1,30})$', $message, $cmd)) + { + include('./lib/commands/join.cmd.' . C_EXTENSION); + } else if (eregi('^\/kick[[:space:]](.{1,30})$', $message, $cmd)) { include('./lib/commands/kick.cmd.' . C_EXTENSION); } + else if (eregi('^\/me[[:space:]](.*)?$', $message, $cmd)) + { + include('./lib/commands/me.cmd.' . C_EXTENSION); + } else if (eregi('^\/(msg|to)[[:space:]]([^[:space:]]{1,30})[[:space:]](.+)$', $message, $cmd)) { include('./lib/commands/priv_msg.cmd.' . C_EXTENSION); } ! else if (eregi('^\/notify$', $message)) { ! include('./lib/commands/notify.cmd.' . C_EXTENSION); } ! else if (eregi('^\/order$', $message)) { ! include('./lib/commands/order.cmd.' . C_EXTENSION); } ! else if (eregi('^\/profile$', $message)) { ! include('./lib/commands/profile.cmd.' . C_EXTENSION); } else if (eregi('^\/promote[[:space:]](.{1,30})$', $message, $cmd)) *************** *** 81,91 **** include('./lib/commands/promote.cmd.' . C_EXTENSION); } ! else if (eregi('^\/(help|\?)$', $message)) { ! include('./lib/commands/help.cmd.' . C_EXTENSION); } ! else if (eregi('^\/clear$', $message)) { ! include('./lib/commands/clear.cmd.' . C_EXTENSION); } else if (C_SAVE --- 90,100 ---- include('./lib/commands/promote.cmd.' . C_EXTENSION); } ! else if (eregi('^\/(quit|exit|bye)([[:space:]](.+))?$', $message, $cmd)) { ! include('./lib/commands/quit.cmd.' . C_EXTENSION); } ! else if (eregi('^\/refresh([[:space:]]([[:digit:]]*))?$', $message, $cmd)) { ! include('./lib/commands/refresh.cmd.' . C_EXTENSION); } else if (C_SAVE *************** *** 95,114 **** include('./lib/commands/save.cmd.' . C_EXTENSION); } ! else if (eregi('^\/announce[[:space:]](.*)?$', $message, $cmd)) { ! include('./lib/commands/announce.cmd.' . C_EXTENSION); ! } ! else if (eregi('^\/invite([[:space:]](.+))+$', $message, $cmd)) ! { ! include('./lib/commands/invite.cmd.' . C_EXTENSION); } ! else if (C_BANISH != 0 ! && eregi('^\/ban[[:space:]](\*[[:space:]])?(.{1,30})$', $message, $cmd)) { ! include('./lib/commands/banish.cmd.' . C_EXTENSION); } ! else if (eregi('^\/me[[:space:]](.*)?$', $message, $cmd)) { ! include('./lib/commands/me.cmd.' . C_EXTENSION); } ?> --- 104,119 ---- include('./lib/commands/save.cmd.' . C_EXTENSION); } ! else if (eregi('^\/(show|last)([[:space:]]([[:digit:]]+))?$', $message, $cmd)) { ! include('./lib/commands/show.cmd.' . C_EXTENSION); } ! else if (eregi('^\/timestamp$', $message)) { ! include('./lib/commands/timestamp.cmd.' . C_EXTENSION); } ! else if (eregi('^\/whois[[:space:]](.{1,30})$', $message, $cmd)) { ! include('./lib/commands/whois.cmd.' . C_EXTENSION); } + ?> |